Skip to content

Commit

Permalink
Make workflows more semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
Liakhovskyi Vladyslav committed Sep 15, 2023
1 parent e8a9be9 commit a7cfae4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-lamps-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-grecaptcha-v3': patch
---

Make CI more semantic.
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CI
name: Test
on:
push:
branches: [main]
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)

env:
# We only install Chromium manually
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'

jobs:
Tests:
runs-on: ${{ matrix.os }}
Expand All @@ -28,24 +24,24 @@ jobs:
- node-version: 20
os: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2.4.0
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm i --frozen-lockfile
- run: pnpm test
env:
CI: true
Lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2.4.0
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: pnpm
- run: 'pnpm i && pnpm lint && pnpm test'
- run: 'pnpm i && pnpm lint'

0 comments on commit a7cfae4

Please sign in to comment.