mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-26 14:00:13 +00:00
Update main.yml
This commit is contained in:
parent
e57350e0e5
commit
aac9476e26
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@ -6,28 +6,17 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup node 12
|
||||||
- name: Cache node modules
|
uses: actions/setup-node@v2
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
with:
|
||||||
path: ~/.npm
|
node-version: 12.x
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
- run: npm ci
|
||||||
restore-keys: |
|
- run: npm run build
|
||||||
${{ runner.os }}-node-
|
- run: npm run format-check
|
||||||
|
- run: npm test
|
||||||
- name: Node ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: unit tests
|
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
npm test
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user