-
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.
separate deps, create
setup-job
shared action
- Loading branch information
Showing
7 changed files
with
117 additions
and
213 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,20 @@ | ||
name: Setup Job | ||
description: Checks out code, sets up Node.js, and installs dependencies | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: npm | ||
|
||
- name: Install Dependencies | ||
id: install | ||
run: npm ci |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
concurrency: | ||
group: ci-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
eslint: | ||
name: Lint - ESLint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Job | ||
id: setup-job | ||
uses: .github/actions/setup-job.yml | ||
|
||
- name: Lint | ||
id: lint | ||
run: | | ||
npm run lint:eslint | ||
editorconfig: | ||
name: Lint - EditorConfig | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Job | ||
id: setup-job | ||
uses: .github/actions/setup-job.yml | ||
|
||
- name: Lint | ||
id: lint | ||
run: npm run lint:ec | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Job | ||
id: setup-job | ||
uses: .github/actions/setup-job.yml | ||
|
||
- name: Tests | ||
id: tests | ||
run: npm run test:ci |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
npm exec lint-staged | ||
npm exec ec -- -config .editorconfig-checker | ||
npm exec vitest -- run | ||
npm run lint:ec | ||
npm run test:ci |
Oops, something went wrong.