Skip to content

Commit

Permalink
ci: use shared GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jun 6, 2022
1 parent 16c9054 commit 1183ab1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 80 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/ci-test.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on: [ push ]

env:
CI: true

jobs:

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

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

test:
needs: [ lint, get-lts ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
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 }}
33 changes: 0 additions & 33 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit 1183ab1

Please sign in to comment.