Skip to content

Commit

Permalink
Update CI versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed May 31, 2024
1 parent 050f6e2 commit b20afe0
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
env: {}

# FILE GENERATED WITH: npx ghat fregante/ghatemplates/node
# SOURCE: https://github.com/fregante/ghatemplates

name: CI

on:
Expand All @@ -13,30 +8,28 @@ jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install
run: npm ci || npm install
- name: XO
run: npx xo
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- run: npm ci
- run: npx xo

Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install
run: npm ci || npm install
- name: build
run: npm run build --if-present
- name: Test
run: npm run test:unit
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- run: npm ci
- run: npm run test:unit

Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install
run: npm ci || npm install
- name: build
run: npm run build
- uses: actions/checkout@v4
- run: npm ci
- run: npm run build
- name: Ensure that test URLs aren't included in the built file
run: '! grep http distribution/index.js'

0 comments on commit b20afe0

Please sign in to comment.