gns3-web-ui/.github/workflows/main.yml

29 lines
591 B
YAML
Raw Normal View History

2021-04-16 19:59:16 +00:00
name: Build
on:
push:
2021-04-30 12:28:37 +00:00
branches:
2022-07-22 20:36:37 +00:00
- '**'
2021-04-30 12:28:37 +00:00
pull_request:
2021-04-16 19:59:16 +00:00
branches:
- master
2021-04-30 12:28:37 +00:00
- master-3.0
2021-04-16 19:59:16 +00:00
jobs:
build:
2022-07-22 20:36:37 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 14, 16, 18 ]
name: Node ${{ matrix.node }}
2021-04-16 19:59:16 +00:00
steps:
2022-07-22 20:36:37 +00:00
- uses: actions/checkout@v3
2022-07-23 09:09:49 +00:00
- name: Setup Node ${{ matrix.node }}
2022-07-22 20:36:37 +00:00
uses: actions/setup-node@v3
2021-04-16 19:59:16 +00:00
with:
2022-07-22 20:36:37 +00:00
node-version: ${{ matrix.node }}
2022-07-23 09:09:49 +00:00
cache: 'yarn'
2021-04-18 22:39:50 +00:00
- name: Install JS dependencies
2022-07-23 09:09:49 +00:00
run: yarn install --frozen-lockfile --immutable
2021-04-18 22:39:50 +00:00
- name: Test
run: yarn test