Skip to content

Commit

Permalink
ci: allow release on v3.x (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored Mar 10, 2025
1 parent ece9efd commit c4c99b4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,28 @@ on:
- push
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
default:
name: Lint and Test with Node.js ${{ matrix.node }} on ${{ matrix.os }}
strategy:
matrix:
node:
- 16
- 18
- 20
- 22
os:
- ubuntu-latest
- windows-latest
- macos-latest
fail-fast: false
runs-on: ${{ matrix.os }}
env:
YARN_IGNORE_NODE: 1
steps:
- uses: actions/checkout@v4

Expand All @@ -33,17 +42,12 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
env:
YARN_IGNORE_NODE: 1

- name: Install Dependencies
run: yarn --immutable
env:
YARN_IGNORE_NODE: 1

- name: Build, Lint and Test
run: yarn run-s build lint test typecov
env:
EFF_NO_LINK_RULES: true
PARSER_NO_WATCH: true
YARN_IGNORE_NODE: 1
12 changes: 9 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ on:
push:
branches:
- master
- v3.x
pull_request:
branches:
- master
- v3.x
schedule:
- cron: '16 11 * * 2'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand All @@ -30,15 +36,15 @@ jobs:
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{ matrix.language }}'
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches:
- master
- v3.x

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ on:
pull_request:
branches:
- master
- v3.x

permissions:
contents: read
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
size-limit:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c4c99b4

Please sign in to comment.