Skip to content

Commit

Permalink
test(GA): Add Github Actions CI & release
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Jun 22, 2020
1 parent a92a91a commit 8362e1f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
- push

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}-${{ matrix.node-version }}

- name: Install
run: npm install

- name: Test
run: make test
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Test
run: make test

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -33,6 +30,9 @@ jobs:
- name: Install
run: npm install

- name: Test
run: make test

- name: Semantic Release
run: npm run semantic-release
env:
Expand Down

0 comments on commit 8362e1f

Please sign in to comment.