Skip to content

Commit

Permalink
chore: Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Nov 25, 2023
1 parent 7b86907 commit b86a3b8
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
name: "Checkin"
on:
push:
branches:
- main
pull_request:

jobs:
build-and-test:
name: "Build & Test"
runs-on: ubuntu-latest
strategy:
matrix:
node:
- latest
- lts/*
steps:
- name: "Checkout"
uses: actions/checkout@v3

- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: "npm ci"
run: npm ci

- name: "Build"
run: npm run build

- name: "Linters"
run: npm run lint

- name: "Unit Tests"
run: npm run test

- name: "Artifacts"
uses: actions/upload-artifact@v3
with:
path: |
lib/sepa.js
lib/sepa.min.js

0 comments on commit b86a3b8

Please sign in to comment.