Skip to content

Commit 1639b93

Browse files
committed
merge into a single job
1 parent 17cb2b8 commit 1639b93

File tree

1 file changed

+4
-35
lines changed

1 file changed

+4
-35
lines changed

.github/workflows/offlinedocs.yaml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2222

2323
jobs:
24-
fmt:
24+
fmt-lint-build:
2525
name: fmt
2626
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
2727
steps:
@@ -31,56 +31,25 @@ jobs:
3131
- name: Setup Node
3232
uses: buildjet/setup-node@v3
3333
with:
34-
node-version: env.NODE_VERSION
34+
node-version: 16.20.1
3535
cache: "yarn"
3636
cache-dependency-path: "offlinedocs/yarn.lock"
3737

38-
- name: Install Pretier
38+
- name: Install dependencies
3939
run: |
4040
cd offlinedocs
41-
mv package.json package.json.bak
42-
jq '{dependencies: {prettier: .devDependencies.prettier}}' < package.json.bak > package.json
43-
yarn --frozen-lockfile
44-
mv package.json.bak package.json
41+
yarn
4542
4643
- name: Check format
4744
run: |
4845
cd offlinedocs
4946
yarn format:check
5047
51-
lint:
52-
name: lint
53-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@v3
57-
58-
- name: Setup Node
59-
uses: buildjet/setup-node@v3
60-
with:
61-
node-version: env.NODE_VERSION
62-
cache: "yarn"
63-
cache-dependency-path: "offlinedocs/yarn.lock"
64-
6548
- name: lint
6649
run: |
6750
cd offlinedocs
6851
yarn && yarn lint
6952
70-
build:
71-
name: build
72-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
73-
steps:
74-
- name: Checkout
75-
uses: actions/checkout@v3
76-
77-
- name: Setup Node
78-
uses: buildjet/setup-node@v3
79-
with:
80-
node-version: env.NODE_VERSION
81-
cache: "yarn"
82-
cache-dependency-path: "offlinedocs/yarn.lock"
83-
8453
- name: Build
8554
run: |
8655
version="$(./scripts/version.sh)"

0 commit comments

Comments
 (0)