-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): prepare configuration for github
- Loading branch information
Showing
4 changed files
with
224 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for npm dependencies | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
target-branch: develop | ||
schedule: | ||
interval: "weekly" | ||
day: sunday | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
target-branch: develop | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: sunday |
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,76 @@ | ||
name: Check pull request | ||
|
||
on: | ||
pull_request: | ||
branches: [master, develop] | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
RETENTION_DAYS: 30 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODE_VERSION}} | ||
- run: npm ci | ||
- run: npm run lint | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: lint-report | ||
path: lint-report/ | ||
retention-days: ${{env.RETENTION_DAYS}} | ||
|
||
performance: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODE_VERSION}} | ||
- run: npm ci | ||
- run: npm run performance | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: performance-report | ||
path: performance-report/ | ||
retention-days: ${{env.RETENTION_DAYS}} | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODE_VERSION}} | ||
- run: npm ci | ||
- run: npm run test | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-report | ||
path: test-report/ | ||
retention-days: ${{env.RETENTION_DAYS}} | ||
|
||
build: | ||
needs: [lint, performance, test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODE_VERSION}} | ||
- run: npm ci | ||
- run: npm run build | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: build-report | ||
path: build-report/ | ||
retention-days: ${{env.RETENTION_DAYS}} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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