Skip to content

Commit

Permalink
WIP GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Oct 11, 2023
1 parent beba17b commit 2cb9866
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Name of the pipeline
name: CI

# When pushing to any branch
on: [push, pull_request]

jobs:
ci:
name: Lint & Test (Node ${{ matrix.version }})
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
version:
- 14
- 16
- 18
- current
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: 'npm'

- name: Install Packages
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm run cover

- name: Coveralls
uses: coverallsapp/github-action@v2
if: ${{ matrix.version == 'current' }}
# with:
# github-token: ${{ secrets.github_token }}

# Cancel running workflows for the same branch when a new one is started.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

0 comments on commit 2cb9866

Please sign in to comment.