chore: some minor code adjustments (#755) #455
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: Build & Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| os: [macos-14] | |
| node-version: [24.x] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| - run: npm run eslint | |
| - run: npm run build | |
| env: | |
| GITHUB_API_PREFIX: http://localhost:8080/api/github | |
| - name: Install snapshot test dependencies | |
| working-directory: tests | |
| run: npm ci && npx playwright install --with-deps | |
| - name: Run snapshot tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx start-server-and-test watch:dev-server http://localhost:8080 "env -u GITHUB_TOKEN npm --prefix tests test" |