Skip to content

Commit

Permalink
ci: improve pipeline for source codes verification
Browse files Browse the repository at this point in the history
- Rename CI config file from `ci` -> `source_codes_ci`
- Add `paths-ignore` to skip CI running when changing to `website`
- Adjust cache restore key name to use workflow input `os` instead of runner OS
  • Loading branch information
ahnpnl committed May 7, 2024
1 parent cf8d2f6 commit 9f62d6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_standard_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
examples/example-app-yarn-workspace/node_modules
key: ${{ inputs.os }}-${{ inputs.node }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ inputs.node }}-build
${{ inputs.os }}-${{ inputs.node }}-build
- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
examples/example-app-yarn-workspace/node_modules
key: ${{ inputs.os }}-${{ inputs.node }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ inputs.node }}-build
${{ inputs.os }}-${{ inputs.node }}-build
- uses: actions/setup-node@v4
if: ${{ steps.cache-yarn.outputs.cache-hit != 'true' }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: CI
name: Source codes CI

on:
push:
branches:
- main
paths-ignore:
- 'website/**'
pull_request:
branches:
- '**'
paths-ignore:
- 'website/**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down

0 comments on commit 9f62d6a

Please sign in to comment.