Skip to content

Commit

Permalink
ci: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2024
1 parent 5a52835 commit 48acc8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/autofix.yml
@@ -1,9 +1,9 @@
name: autofix.ci # needed to securely identify the workflow
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main" ]
branches: ["main"]

permissions:
contents: read
Expand All @@ -16,11 +16,11 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- name: Fix lint issues
run: npm run lint:fix
- uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
with:
commit-message: 'chore: apply automated lint fixes'
commit-message: "chore: apply automated lint fixes"
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -10,16 +10,21 @@ on:

jobs:
ci:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
if: matrix.os == 'ubuntu-latest'
- run: pnpm build
if: matrix.os == 'ubuntu-latest'
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v4

0 comments on commit 48acc8d

Please sign in to comment.