fix(deps): update external-major #565
This file contains 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 and Test | |
on: [push] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
id: pnpm-install | |
with: | |
version: ^8.6.0 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
# Set up GitHub Actions caching for Wireit. | |
- uses: google/wireit@setup-github-actions-caching/v2 | |
- name: Build | |
run: pnpm run build | |
- name: Biome check | |
run: pnpm run biome:check | |
- name: Test | |
run: pnpm run test | |
todo-to-issue: | |
needs: build-and-test | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: TODO to Issue | |
uses: alstr/todo-to-issue-action@v5 | |
with: | |
REPO: ${{ github.repository }} | |
BEFORE: ${{ github.event.before }} | |
SHA: ${{ github.sha }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LABEL: "// TODO" | |
COMMENT_MARKER: "//" | |
id: todo |