Skip to content

chore: prepare release #104

chore: prepare release

chore: prepare release #104

Workflow file for this run

name: Node CI
on:
# Allow to trigger the workflow manually again via the GitHub UI
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_call
workflow_call:
# Allow to trigger the workflow manually via the GitHub UI and also allow to
# select a custom branch
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# Trigger the workflow when a pull_request's activity type is opened,
# synchronize, or reopened.
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
pull_request:
# Trigger the workflow on push
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
push:
branches:
- main
# Runs "At 05:00 on Monday." (see https://crontab.guru/#0_5_*_*_1)
# @see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
schedule:
- cron: "0 5 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn --prefer-offline --frozen-lockfile --no-progress --silent
- run: yarn lint
- run: yarn test