Skip to content

Commit 056862d

Browse files
hsbtclaude
andcommitted
Build CSS in CI instead of checking it is up-to-date
Since compiled.css is no longer tracked in the repository, the CI needs to build it before running tests. Move the Node.js setup and CSS build steps before the test step. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd961e3 commit 056862d

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,20 @@ jobs:
2424
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525
with:
2626
fetch-depth: 1
27+
- name: Setup Ruby
28+
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
bundler-cache: true
2732
- name: Setup Node.js
2833
uses: actions/setup-node@v4
2934
with:
3035
node-version: '20'
3136
cache: 'npm'
3237
- name: Install npm dependencies
3338
run: npm ci
34-
- name: Check CSS is up-to-date
35-
run: |
36-
npm run build-css
37-
git diff --exit-code stylesheets/compiled.css || (echo "Error: compiled.css is out of date. Run 'npm run build-css' and commit the changes." && exit 1)
38-
- name: Setup Ruby
39-
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0
40-
with:
41-
ruby-version: ${{ matrix.ruby }}
42-
bundler-cache: true
39+
- name: Build CSS
40+
run: npm run build-css
4341
- name: Dump Ruby version
4442
run: ruby -v
4543
- name: Run tests

0 commit comments

Comments
 (0)