fix linting error #160
This file contains hidden or 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: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| Linting: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v4 | |
| - name: Add problem matcher | |
| run: echo "::add-matcher::.github/problemMatchers/eslint.json" | |
| - uses: actions/checkout@v4 | |
| - name: Find yarn cache location | |
| id: yarn-cache | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - name: JS package cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: $(( steps.yarn-cache.outputs.dir )) | |
| key: $(( runner.os ))-yarn-$(( hashFiles('**/yarn.lock') )) | |
| restore-keys: | | |
| $(( runner.os ))-yarn- | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Run ESLint | |
| run: yarn lint --fix=false | |
| Building: | |
| name: Compile source code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v4 | |
| - name: Add problem matcher | |
| run: echo "::add-matcher::.github/problemMatchers/tsc.json" | |
| - uses: actions/checkout@v4 | |
| - name: Find yarn cache location | |
| id: yarn-cache | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - name: JS package cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: $(( steps.yarn-cache.outputs.dir )) | |
| key: $(( runner.os ))-yarn-$(( hashFiles('**/yarn.lock') )) | |
| restore-keys: | | |
| $(( runner.os ))-yarn- | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Typecheck And Build Code | |
| run: yarn typecheck && yarn build-lib |