remove now-redundant experimental next setting #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: code check | |
on: [pull_request] | |
env: | |
MERGE_CHECK_NAME: Mergeability | |
jobs: | |
merge-gatekeeper: | |
name: "$MERGE_CHECK_NAME" | |
runs-on: ubuntu-latest | |
permissions: | |
checks: read | |
statuses: read | |
steps: | |
- name: Dump vars context | |
env: | |
VARS_JSON: ${{ toJSON(vars) }} | |
run: echo "${VARS_JSON}" | |
- name: Run Merge Gatekeeper | |
uses: upsidr/merge-gatekeeper@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
self: ${{ env.MERGE_CHECK_NAME }} | |
yarn-check: | |
name: Yarn ${{ matrix.command }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
command: ["lint:ci", "format:ci", "styles", "npm audit -A"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install project dependencies | |
run: yarn | |
- name: Check ${{ matrix.command }} | |
run: yarn ${{ matrix.command }} | |
env: | |
FORCE_COLOR: 2 |