0.5.0-alpha.3 (#440) #322
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: main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: main/build | |
| permissions: | |
| security-events: 'write' # Required for zizmor to upload its results. | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Set up Node.js | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Update npm | |
| run: npm install -g npm@11.7.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run prettier | |
| run: npm run prettier:check | |
| - name: Run lint | |
| run: npm run lint | |
| - name: Run strict build | |
| run: npm run build:strict | |
| - name: Build package | |
| run: npm run build | |
| - name: Setup test .env file | |
| run: cp .env.example .env | |
| - name: Run tests | |
| run: npm test | |
| - name: Run zizmor 🌈 | |
| uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0 | |
| with: | |
| persona: pedantic | |
| version: 1.18.0 |