Skip to content

reuse github workflows #177

reuse github workflows

reuse github workflows #177

Workflow file for this run

name: test and build
on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# https://nodejs.org/en/about/previous-releases#release-schedule
node: [16, 18, 20, 22]
steps:
- # https://github.com/actions/checkout
name: Checkout repo
uses: actions/checkout@v4
- # https://github.com/actions/setup-node
name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm clean-install
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Create build info
run: ./scripts/build_info.sh
# uses: FAIRDataTeam/github-workflows/.github/workflows/maven-verify.yml@v1