-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.23 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish to GitHub Package Registry
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
registry-url: https://npm.pkg.github.com/
node-version: 14.x
scope: '@dalenguyen'
- name: npm install, build, and test
run: npm install, npm run build --if-present, npm test
- name: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: npm run deploy, npm run build --if-present, npm test
- name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install bats
run: git clone --depth 1 https://github.com/sstephenson/bats.git
- name: Run tests
run: PATH="./bats/bin:$PATH" script/test
- name: Verify download URL checksums
if: github.event_name == 'pull_request'
run: ./script/mirror verify "$COMMIT_RANGE"
env:
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..