Skip to content

Commit

Permalink
Add GitHub Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert authored and Turbo87 committed Feb 28, 2020
1 parent e576a6a commit 0ab8d38
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am

jobs:
test:
strategy:
matrix:
node: ['10', '12']

name: Tests (Node.js v${{ matrix.node }})
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: yarn install --no-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test:coverage --runInBand
- run: yarn test:ember
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
name: release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: 'https://registry.npmjs.org'

- run: yarn install
- run: yarn build

- name: auto-dist-tag
run: |
yarn global add auto-dist-tag@1
auto-dist-tag --write
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0ab8d38

Please sign in to comment.