Skip to content

Commit

Permalink
ci: update GHA workflow with shared
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jun 5, 2022
1 parent e363dfc commit 3b6bbde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI

name: Tests

on: [ push ]

Expand All @@ -7,35 +8,28 @@ env:

jobs:

lint:
uses: haraka/.github/.github/workflows/lint.yml@master

# coverage:
# uses: haraka/.github/.github/workflows/coverage.yml@master
# secrets: inherit
ci-test:

test:
needs: [ lint, get-lts ]
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
node-version: [ 14.x, 16.x ]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v2
name: Checkout Module
with:
fetch-depth: 1

- uses: actions/setup-node@v2
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm test

get-lts:
runs-on: ubuntu-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1
outputs:
active: ${{ steps.get.outputs.active }}
lts: ${{ steps.get.outputs.lts }}
- name: Run test suite
run: npm run test
2 changes: 0 additions & 2 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

### Unreleased


### [1.0.12] - 2022-06-05

- ci: update GHA workflow with shared
Expand Down

0 comments on commit 3b6bbde

Please sign in to comment.