forked from d3fc/d3fc
-
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: refine CI workflows for operational clarity
- Loading branch information
1 parent
87d2372
commit c9117e1
Showing
4 changed files
with
91 additions
and
70 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Development | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_call: | ||
|
||
jobs: | ||
build-test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Setup Node" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Build" | ||
run: | | ||
npm run bundle | ||
npm run bundle-min | ||
- name: "Run tests" | ||
run: npm test | ||
|
||
lint: | ||
name: Code standards | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Setup Node" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Lint code" | ||
run: npm run lint | ||
|
||
- name: "Lint commit" | ||
run: npm run commitlint |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build-test-lint: | ||
name: Build, test, and lint | ||
uses: ./.github/workflows/development.yml | ||
|
||
publish-npm: | ||
name: Publish npm package(s) | ||
needs: build-test-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Setup Node" | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: "Install dependencies" | ||
run: npm ci | ||
|
||
- name: "Publish" | ||
run: npm run publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |