mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-04 22:15:24 +00:00
ci: update test workflow
Signed-off-by: Ardalan Amini <[email protected]>
This commit is contained in:
2 files changed
+58
-14
No files matched your search
+57
-13
@@ -19,7 +19,35 @@ jobs:
|
|||||||
- name: Use PNPM
|
- name: Use PNPM
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 10
|
||||||
|
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
cache : pnpm
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run : pnpm i
|
||||||
|
|
||||||
|
- name: Build using TypeScript
|
||||||
|
run : pnpm build
|
||||||
|
|
||||||
|
- name: Package using ncc
|
||||||
|
run : pnpm package
|
||||||
|
|
||||||
|
lint : # make sure build/ci work properly
|
||||||
|
name : Lint
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps :
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use PNPM
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
|
||||||
- name: Use Node.js 20
|
- name: Use Node.js 20
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -33,20 +61,36 @@ jobs:
|
|||||||
- name: Check code styles
|
- name: Check code styles
|
||||||
run : pnpm lint
|
run : pnpm lint
|
||||||
|
|
||||||
- name: Run unit tests
|
test : # make sure build/ci work properly
|
||||||
run : pnpm test
|
|
||||||
|
|
||||||
- name: Build using TypeScript
|
|
||||||
run : pnpm build
|
|
||||||
|
|
||||||
- name: Package using ncc
|
|
||||||
run : pnpm package
|
|
||||||
|
|
||||||
test : # make sure the action works on a clean machine without building
|
|
||||||
name : Test
|
name : Test
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps :
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use PNPM
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
cache : pnpm
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run : pnpm i
|
||||||
|
|
||||||
|
- name: Run unit tests
|
||||||
|
run : pnpm test:coverage
|
||||||
|
|
||||||
|
live-test : # make sure the action works on a clean machine without building
|
||||||
|
name : Live Test
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps :
|
steps :
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -56,8 +100,8 @@ jobs:
|
|||||||
semver : ${{ startsWith(github.ref, 'refs/tags/') }}
|
semver : ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
mention-new-contributors: ${{ github.ref_protected }}
|
mention-new-contributors: ${{ github.ref_protected }}
|
||||||
|
|
||||||
test-with-inputs: # make sure the action works on a clean machine without building
|
live-test-with-inputs: # make sure the action works on a clean machine without building
|
||||||
name : Test with inputs
|
name : Live Test with inputs
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@
|
|||||||
"package": "ncc build --out action --minify --source-map --license licenses.txt",
|
"package": "ncc build --out action --minify --source-map --license licenses.txt",
|
||||||
"all": "pnpm lint:fix && pnpm build && pnpm package",
|
"all": "pnpm lint:fix && pnpm build && pnpm package",
|
||||||
"test": "node --expose-gc node_modules/jest/bin/jest -c jest.config.ts",
|
"test": "node --expose-gc node_modules/jest/bin/jest -c jest.config.ts",
|
||||||
"test:coverage": "pnpm test -- --coverage"
|
"test:coverage": "pnpm test --coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
|
|||||||
Reference in new issue
Block a user