Skip to content

Commit

Permalink
feat: adding a build github action
Browse files Browse the repository at this point in the history
  • Loading branch information
benw-apposing committed Oct 30, 2020
1 parent 23b2485 commit f980fef
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Build'

on: push

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# yarn cache files are stored in `~/.cache/yarn` on Linux/macOS
path: ~/.cache/yarn
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run tests
run: yarn test

0 comments on commit f980fef

Please sign in to comment.