fix CI #209
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: latest | |
run_install: true | |
- name: Code style check | |
run: pnpm fmt:check | |
- name: Run tests | |
run: pnpm test | |
user_test: | |
name: User Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: ./g-plane/typed-query-selector | |
- name: Checkout "refined-github" | |
uses: actions/checkout@v4 | |
with: | |
repository: sindresorhus/refined-github | |
ref: 4b73c8e112fee0536f25ddf96d4e77417024d534 | |
path: ./sindresorhus/refined-github | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ./sindresorhus/refined-github | |
- name: Link package | |
run: | | |
cd ./g-plane/typed-query-selector | |
sudo npm link | |
cd ../../sindresorhus/refined-github | |
npm link typed-query-selector | |
- name: Execute in non-strict mode | |
run: node node_modules/.bin/tsc --noEmit --extendedDiagnostics | |
working-directory: ./sindresorhus/refined-github | |
- name: Execute in strict mode | |
run: | | |
sed -i "s/typed-query-selector/typed-query-selector\/strict/" source/refined-github.ts | |
node node_modules/.bin/tsc --noEmit --extendedDiagnostics | |
working-directory: ./sindresorhus/refined-github |