Skip to content

Github Actions

Github Actions #2

Workflow file for this run

# 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