adjust test name. #264
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: minotor | |
| on: [push] | |
| jobs: | |
| format: | |
| name: 💅 Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: 💅 Prettier | |
| run: npm run format:check | |
| lint: | |
| name: 🔍 ESLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: ⬣ ESLint | |
| run: npm run lint:check | |
| audit: | |
| name: 🛡️ Audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - name: 🛡️ Audit | |
| run: npm audit --audit-level=high --omit=dev | |
| spell: | |
| name: 🔠 Spellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: 🈸 Spellcheck | |
| run: npm run spell:check | |
| type: | |
| name: ʦ Typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: ʦ Typecheck | |
| run: npm run type:check | |
| test: | |
| name: ⚡ Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: ⚡ Tests | |
| run: npm run test:coverage | |
| e2e: | |
| name: 🏁 End-to-end tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs pull | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - name: 🏁 End-to-end tests | |
| run: npm run e2e | |
| build-and-release: | |
| name: 🚀 Build & release | |
| needs: [format, lint, audit, spell, type, test, e2e] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - uses: bahmutov/npm-install@v1 | |
| - uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 🔨 Build | |
| run: npm run build | |
| - name: 🚀 Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npm run semantic-release |