Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use reusable workflows #44

Merged
merged 2 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 16 additions & 32 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration
name: CI

on:
push:
Expand All @@ -7,36 +7,20 @@ on:
pull_request:

jobs:
Linting:
formatting:
name: Formatting
uses: sapphiredev/.github/.github/workflows/reusable-prettier.yml@main

linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: ESLint
run: yarn lint
uses: sapphiredev/.github/.github/workflows/reusable-lint.yml@main

typecheck:
name: Typecheck
uses: sapphiredev/.github/.github/workflows/reusable-typecheck.yml@main

Typechecking:
name: Typechecking
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Typechecking
run: yarn test
sonar:
name: Sonar Analysis
uses: sapphiredev/.github/.github/workflows/reusable-sonar.yml@main
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
15 changes: 1 addition & 14 deletions .github/workflows/labelsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,4 @@ on:

jobs:
label_sync:
name: Automatic Label Synchronization
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
sparse-checkout: .github/labels.yml
sparse-checkout-cone-mode: false
repository: 'sapphiredev/.github'
- name: Run Label Sync
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
uses: sapphiredev/.github/.github/workflows/reusable-labelsync.yml@main
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"tailwindCSS.experimental.configFile": "tailwind.config.ts",
"prettier.documentSelectors": ["**/*.svg"],
"sonarlint.connectedMode.project": {
"connectionId": "https-sonarqube-sapphirejs-dev",
"projectKey": "sapphiredev_resource-webhooks_e2cb9959-cd79-4b35-a323-e26dee4ce7d4"
"connectionId": "sapphiredev",
"projectKey": "sapphiredev_resource-webhooks"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"test": "nuxt typecheck",
"typecheck": "nuxt typecheck",
"lint": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check ."
Expand Down