Skip to content

Commit

Permalink
upgrade GitHub actions (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 14, 2023
1 parent 9b31bc7 commit e1ad1e0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/node.js.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: |
echo ::add-matcher::.github/eslint.json
yarn run eslint src test --format=compact
- run: yarn test:mocha
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"node": ">=14.5.0"
},
"scripts": {
"test": "mkdir -p test/output && mocha -r module-alias/register 'test/**/*-test.js' test/input.js && eslint src test",
"test": "yarn test:mocha && yarn test:lint",
"test:mocha": "mkdir -p test/output && mocha -r module-alias/register 'test/**/*-test.js' test/input.js",
"test:lint": "eslint src test",
"prepublishOnly": "rm -rf dist && rollup -c",
"postpublish": "git push && git push --tags",
"dev": "snowpack dev"
Expand Down

0 comments on commit e1ad1e0

Please sign in to comment.