Skip to content

Continuous Integration #1822

Continuous Integration

Continuous Integration #1822

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
schedule:
- cron: '0 19 * * 1-5'
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Set git global config (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.filemode false
git config --global core.fscache true
git config --global core.longpaths true
git config --global core.preloadindex true
git config --global branch.autosetuprebase always
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # tag: v6.0.0
with:
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # tag: v6.0.0
with:
node-version: lts/-1
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # tag: v4.3.0
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-node-modules
- name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --immutable
- name: Test
run: yarn test