Skip to content

sync v6.0.16 (https://github.com/WillBooster/one-way-git-sync/commits… #1799

sync v6.0.16 (https://github.com/WillBooster/one-way-git-sync/commits…

sync v6.0.16 (https://github.com/WillBooster/one-way-git-sync/commits… #1799

Workflow file for this run

name: Test
on:
pull_request:
branches:
- 'main'
- '!renovate/**'
push:
branches:
- 'main'
- 'renovate/**'
jobs:
pre:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: false
skip_after_successful_duplicate: true
concurrent_skipping: same_content_newer
paths_ignore: '["**/*.md", "**/docs/**"]'
test:
needs: pre
if: ${{ needs.pre.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20]
steps:
- uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: true
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Show environment information
run: |
echo "node: $(node -v)"
echo "yarn: $(yarn -v)"
- uses: actions/cache@v3
id: yarn-cache
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
- run: yarn typecheck
if: ${{ matrix.node == 16 }}
- run: yarn lint
if: ${{ matrix.node == 16 }}