Skip to content

FIX: ci: test delay #125

FIX: ci: test delay

FIX: ci: test delay #125

Workflow file for this run

name: ci-test-push
on:
push: { branches: [ "**" ] }
env:
cache-version: 20220513
cache-path: | # actually "\n" separated string
.github/cache/persist-gitignore/
~/.npm/
IS_CI: true
jobs:
test-push: # job id
timeout-minutes: 15
strategy:
fail-fast: false # allow all test to run to the end
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
node-version: [ "20.x" ] # LTS version
runs-on: "${{ matrix.os }}"
steps:
- { uses: "actions/checkout@v3" } # https://github.com/actions/checkout
- { uses: "actions/setup-node@v3", with: { node-version: "${{ matrix.node-version }}" } } # https://github.com/actions/setup-node
# TODO: wait for npm fix # - run: npx @dr-js/dev@0.5 -eI .github/ci-patch.js
- run: npm i -g @dr-js/core@0.5 @dr-js/dev@0.5 @min-pack/npm@0.1 && dr-dev -eI .github/ci-patch.js
- run: dr-dev -c .github/cache/config.js --cache-step setup
- { uses: "actions/cache@v3", with: { # https://github.com/actions/cache
key: "${{ runner.os }}-${{ env.cache-version }}-${{ matrix.node-version }}-${{ hashFiles('.github/cache/temp-gitignore/checksum-file') }}",
restore-keys: "${{ runner.os }}-${{ env.cache-version }}-${{ matrix.node-version }}-",
path: "${{ env.cache-path }}"
} }
- run: dr-dev -c .github/cache/config.js --cache-step mark
- run: npm8 ci --omit=optional # TODO: wait for npm@7 adoption and try npm install + cache for faster puppeteer install
- run: npm test
- run: dr-dev -c .github/cache/config.js --cache-step prune