Skip to content

Commit

Permalink
feat: add workflow to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Oct 30, 2021
1 parent c22989a commit cfebeeb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@ on:
push:
tags-ignore:
- 'v*.*.*'
branches:
- '**'
pull_request:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14, 16]

node: ['14', '16']
name: Test Node v${{ matrix.node }} version
steps:
- uses: actions/checkout@v2

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

- name: Cache pnpm modules
uses: actions/cache@v2
Expand All @@ -31,7 +35,7 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 6.19.1
version: 6

- name: Install
run: pnpm install --frozen-lockfile --ignore-script
Expand Down

0 comments on commit cfebeeb

Please sign in to comment.