1
0
mirror of https://github.com/garraflavatra/alphabets.git synced 2025-01-18 21:27:58 +00:00
alphabets/.github/workflows/ci.yml

32 lines
534 B
YAML
Raw Normal View History

2021-10-26 07:58:20 +00:00
name: Build and test
2021-05-24 11:39:07 +00:00
2021-10-26 07:58:20 +00:00
on: [ push, pull_request ]
2021-05-24 11:39:07 +00:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2021-10-26 07:58:20 +00:00
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
2021-05-24 11:39:07 +00:00
steps:
- uses: actions/checkout@v2
2021-10-26 07:58:20 +00:00
2021-05-24 11:39:07 +00:00
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2021-10-26 07:58:20 +00:00
2021-08-23 12:40:41 +00:00
- run: npm install
2021-10-26 07:58:20 +00:00
2021-08-23 12:40:41 +00:00
- run: npm run build
2021-10-26 07:58:20 +00:00
- uses: actions/upload-artifact@v2
with:
name: build
path: dist/
2021-08-23 12:40:41 +00:00
- run: npm run test