Merge pull request #55 from tari-project/feat/display-new-statuses #129
Workflow file for this run
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: 'Run tests on commit' | |
| on: [push] | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_VERSION: 18.19.0 | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@master | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: 'https://npm.pkg.github.com' | |
| - name: Cache NPM dependencies | |
| uses: pat-s/always-upload-cache@v2.1.5 | |
| with: | |
| path: | | |
| node_modules | |
| key: ${{ runner.OS }}-npm-cache-${{ hashFiles('yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-npm-cache- | |
| - name: Install dependencies | |
| run: | | |
| yarn config set //npm.pkg.github.com/download/:_authToken ${{ env.NODE_AUTH_TOKEN }} | |
| yarn config set @tari-project:registry https://npm.pkg.github.com | |
| yarn --frozen-lockfile | |
| - name: Lint | |
| run: yarn lint | |
| - name: Typecheck | |
| run: yarn typecheck |