Fix/url env api #122
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: "Static Analysis" | |
| on: [ push, pull_request ] | |
| jobs: | |
| analyse_platform: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [ "20.3" ] | |
| next: [ "^14.2.3"] | |
| name: "P${{ matrix.node }} - L${{ matrix.next }}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: "actions/checkout@v4" | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.9' | |
| - name: Cache Node.js modules | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
| - name: Install dependencies | |
| run: | | |
| yarn install --cache-folder .yarn | |
| - name: Lint code | |
| run: | | |
| yarn lint | |
| - name: TypeScript compilation | |
| run: | | |
| yarn tsc |