-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
277bb52
commit ba4ee54
Showing
4 changed files
with
49 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,38 @@ | ||
name: 'Continuous Integration' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request_target: | ||
branches: | ||
- main | ||
- dev | ||
workflow_call: | ||
|
||
permissions: | ||
checks: write | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository ✨ | ||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' }} | ||
- name: Check out repository ✨ (non dependabot) | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check out repository 🎉 (dependabot) | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Setup node env 📦 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
check-latest: true | ||
cache: 'npm' | ||
|
||
- name: Install dependencies 🚀 | ||
run: npm ci --prefer-offline --no-audit --unsafe-perm=true | ||
run: npm ci --prefer-offline --no-audit | ||
|
||
- name: Run linter(s) 👀 | ||
uses: wearerequired/lint-action@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
continue_on_error: false | ||
git_name: github-actions[bot] | ||
git_email: github-actions[bot]@users.noreply.github.com | ||
auto_fix: false | ||
stylelint: true | ||
eslint: true | ||
eslint_extensions: js,ts,vue | ||
prettier: true | ||
prettier_extensions: js,ts,vue | ||
neutral_check_on_warning: true | ||
run: npm run lint | ||
|
||
- name: Run build 🏁 | ||
run: npm run generate | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'The Pipeline' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
concurrency: | ||
group: ci-${{ github.ref }}-1 | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
extract-branch: | ||
name: 'Fetch branch' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
current_branch: ${{ steps.get-branch.outputs.current_branch }} | ||
steps: | ||
- name: Extract branch name 🕊 | ||
id: get-branch | ||
run: echo "current_branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT | ||
ci: | ||
needs: | ||
- extract-branch | ||
name: 'CI' | ||
uses: ./.github/workflows/ci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters