Skip to content

Commit

Permalink
main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
clefayomide committed Feb 27, 2023
1 parent b447aaa commit 3abfbba
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
# name: CI
# on: [push]
# jobs:
# build:
# name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# node: ['10.x', '12.x', '14.x']
# os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2
# steps:
# - name: Checkout repo
# uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# - name: Use Node ${{ matrix.node }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
# - name: Install deps and build (with cache)
# uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint
# - name: Lint
# run: yarn lint

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
# - name: Test
# run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
# - name: Build
# run: yarn build

0 comments on commit 3abfbba

Please sign in to comment.