mirror of
https://github.com/only-cli/oc.git
synced 2026-09-15 10:40:56 +02:00
ci: run tests on push and pull request
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Run the test suite on every push and pull request. Tests are offline by
|
||||
# design (fixtures in tests/pages), so CI never flakes on a live site.
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
Reference in New Issue
Block a user