mirror of
https://github.com/stCarolas/setup-maven.git
synced 2025-02-26 09:42:28 +00:00
30 lines
854 B
YAML
30 lines
854 B
YAML
![]() |
# This workflow will install node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||
|
|
||
|
name: Build Action
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||
|
version: [12, 14, 16]
|
||
|
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Use Node.js ${{ matrix.version }}
|
||
|
uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: ${{ matrix.version }}
|
||
|
cache: yarn
|
||
|
- name: Install dependencies
|
||
|
run: yarn --no-bin-links
|
||
|
- run: yarn build
|
||
|
- run: yarn lint
|
||
|
- run: yarn test --coverage
|