Skip to content

Commit ca59336

Browse files
authored
Merge pull request #11 from catdad-experiments/#10-github-actions
moving builds to GitHub Actions
2 parents dc0d09e + 0e461a2 commit ca59336

File tree

2 files changed

+48
-43
lines changed

2 files changed

+48
-43
lines changed

.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ master ]
7+
8+
env:
9+
FORCE_COLOR: 1
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
name: node ${{ matrix.node }} on ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
node: [20, 18]
18+
os: [macos-latest, windows-latest, ubuntu-latest]
19+
include:
20+
- os: macos-latest
21+
node: 16
22+
- os: windows-latest
23+
node: 14
24+
- os: ubuntu-latest
25+
node: 12
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node }}
31+
- run: npm install
32+
- run: npm test
33+
- name: Inspect tarball
34+
run: npm pack --dry-run
35+
36+
publish:
37+
needs: test
38+
runs-on: ubuntu-latest
39+
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/setup-node@v3
43+
with:
44+
node-version: 16
45+
registry-url: https://registry.npmjs.org/
46+
- run: npm publish --loglevel verbose
47+
env:
48+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.travis.yml

-43
This file was deleted.

0 commit comments

Comments
 (0)