27 lines
562 B
YAML
27 lines
562 B
YAML
name: build_and_test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_and_test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
registry-url: https://registry.npmjs.org
|
|
|
|
- name: yarn cache
|
|
uses: c-hive/gha-yarn-cache@v2
|
|
- run: yarn
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
- run: yarn build
|
|
- run: yarn test
|