Skip to content

Commit

Permalink
ci integration
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 5, 2025
1 parent 9410307 commit 62af379
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ on:
branches: main

jobs:
test-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Chomp
uses: guybedford/chomp-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check Formatting
run: format-check

test-firefox:
runs-on: windows-latest
strategy:
Expand Down
8 changes: 8 additions & 0 deletions chompfile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ run = 'chomp -c bench'
name = 'bench:clear'
run = 'rm -rf bench/results'

[[task]]
name = 'format-check'
run = 'prettier -c src/*.js'

[[task]]
name = 'format'
run = 'prettier -w src/*.js'

[[task]]
name = 'build'
targets = ['dist/es-module-shims.js', 'dist/es-module-shims.wasm.js', 'dist/es-module-shims.debug.js']
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"npm-run-all": "^4.1.5",
"open": "^8.0.8",
"preact": "^10.5.14",
"prettier": "^3.4.2",
"pretty-ms": "^3.2.0",
"rimraf": "^3.0.2",
"rollup": "^2.58.0",
Expand Down

0 comments on commit 62af379

Please sign in to comment.