diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d768329..ba1d115 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,5 @@ -name: CI + +name: Tests on: [ push ] @@ -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 diff --git a/Changes.md b/Changes.md index 868027f..1c1033d 100644 --- a/Changes.md +++ b/Changes.md @@ -1,7 +1,5 @@ - ### Unreleased - ### [1.0.12] - 2022-06-05 - ci: update GHA workflow with shared