mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-04 14:38:48 +00:00
ci: update test workflow
Signed-off-by: Ardalan Amini <[email protected]>
This commit is contained in:
3 files changed
+60
-16
No files matched your search
@@ -21,6 +21,6 @@ updates:
|
|||||||
day : monday
|
day : monday
|
||||||
versioning-strategy: increase
|
versioning-strategy: increase
|
||||||
commit-message :
|
commit-message :
|
||||||
prefix : build(deps)
|
prefix: build(deps)
|
||||||
reviewers :
|
reviewers :
|
||||||
- ardalanamini
|
- ardalanamini
|
||||||
+58
-14
@@ -8,7 +8,7 @@ on : # rebuild any PRs and main branch changes
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build : # make sure build/ci work properly
|
build : # make sure build/ci work properly
|
||||||
name : Build
|
name : Build
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -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