Skip to content

Commit

Permalink
ci: update ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Dec 13, 2024
1 parent a5adbc1 commit d76ca53
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
Expand All @@ -38,7 +39,10 @@ jobs:

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: pnpm exec commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: pnpm exec commitlint --from "${BASE_SHA}" --to "${HEAD_SHA}" --verbose
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}

test-typescript:
name: TypeScript Tests
Expand All @@ -48,6 +52,8 @@ jobs:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@v3
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ on:
branches:
- main

permissions:
actions: read
checks: write
contents: read
security-events: write
permissions: {}

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
actions: read
checks: write
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
Expand All @@ -29,6 +31,8 @@ jobs:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Initialize CodeQL
id: initialize
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ on:
branches:
- main

permissions:
contents: read
pull-requests: write
permissions: {}

jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-24.04

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install required
run: sudo apt-get install -y sqlcipher sqlite3-tools
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ on:
branches:
- main

permissions:
contents: read
pull-requests: write
permissions: {}

jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-24.04

permissions:
contents: read
pull-requests: write

steps:
- name: Install required
run: sudo apt-get install -y sqlcipher sqlite3-tools
Expand Down

0 comments on commit d76ca53

Please sign in to comment.