Skip to content

Commit c276c6f

Browse files
committed
move back to ci.yaml
1 parent 1639b93 commit c276c6f

File tree

2 files changed

+42
-58
lines changed

2 files changed

+42
-58
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
ts: ${{ steps.filter.outputs.ts }}
3636
k8s: ${{ steps.filter.outputs.k8s }}
3737
ci: ${{ steps.filter.outputs.ci }}
38+
offlinedocs: ${{ steps.filter.outputs.offlinedocs }}
3839
steps:
3940
- name: Checkout
4041
uses: actions/checkout@v3
@@ -53,7 +54,6 @@ jobs:
5354
- "examples/web-server/**"
5455
- "examples/monitoring/**"
5556
- "examples/lima/**"
56-
- "offlinedocs/**"
5757
go:
5858
- "**.sql"
5959
- "**.go"
@@ -94,6 +94,9 @@ jobs:
9494
ci:
9595
- ".github/actions/**"
9696
- ".github/workflows/ci.yaml"
97+
offlinedocs:
98+
- "offlinedocs/**"
99+
97100
- id: debug
98101
run: |
99102
echo "${{ toJSON(steps.filter )}}"
@@ -592,9 +595,46 @@ jobs:
592595
projectToken: 695c25b6cb65
593596
workingDir: "./site"
594597

598+
offlinedocs:
599+
name: fmt
600+
needs: changes
601+
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
602+
if: needs.changes.outputs.offlinedocs == 'true' || needs.changes.outputs.ci == 'true'
603+
steps:
604+
- name: Checkout
605+
uses: actions/checkout@v3
606+
607+
- name: Setup Node
608+
uses: buildjet/setup-node@v3
609+
with:
610+
node-version: 16.20.1
611+
cache: "yarn"
612+
cache-dependency-path: "offlinedocs/yarn.lock"
613+
614+
- name: Install dependencies
615+
run: |
616+
cd offlinedocs
617+
yarn
618+
619+
- name: Check format
620+
run: |
621+
cd offlinedocs
622+
yarn format:check
623+
624+
- name: lint
625+
run: |
626+
cd offlinedocs
627+
yarn && yarn lint
628+
629+
- name: Build
630+
run: |
631+
version="$(./scripts/version.sh)"
632+
make -j build/coder_docs_"$version".tgz
633+
595634
required:
596635
runs-on: ubuntu-latest
597-
needs: [fmt, lint, gen, test-go, test-go-pg, test-go-race, test-js]
636+
needs:
637+
[fmt, lint, gen, test-go, test-go-pg, test-go-race, test-js, offlinedocs]
598638
# Allow this job to run even if the needed jobs fail, are skipped or
599639
# cancelled.
600640
if: always()

.github/workflows/offlinedocs.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)