Skip to content

Commit

Permalink
ci: added Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 25, 2020
1 parent 09ad222 commit 3cc16dd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,42 @@
name: Node CI

on: [push]

jobs:
build:
env:
CI: true
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10.x]

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

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build:rollup

0 comments on commit 3cc16dd

Please sign in to comment.