添加action
Some checks failed
build / Build (push) Failing after 8s
test / Run tests (push) Failing after 8s
Some checks failed
build / Build (push) Failing after 8s
test / Run tests (push) Failing after 8s
This commit is contained in:
16
.github/workflows/build.yaml
vendored
16
.github/workflows/build.yaml
vendored
@ -12,12 +12,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Package with Node
|
||||
env:
|
||||
@ -26,11 +26,11 @@ jobs:
|
||||
mkdir dist
|
||||
echo "$CHROME_PEM" > ./dist/scriptcat.pem
|
||||
chmod 600 ./dist/scriptcat.pem
|
||||
npm ci
|
||||
npm run pack
|
||||
pnpm i
|
||||
pnpm run pack
|
||||
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: all-artifacts
|
||||
path: |
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
dist/*.crx
|
||||
|
||||
- name: Archive extension
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: scriptcat
|
||||
path: |
|
||||
|
13
.github/workflows/packageRelease.yml
vendored
13
.github/workflows/packageRelease.yml
vendored
@ -11,12 +11,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Package with Node
|
||||
env:
|
||||
@ -25,9 +25,8 @@ jobs:
|
||||
mkdir dist
|
||||
echo "$CHROME_PEM" > ./dist/scriptcat.pem
|
||||
chmod 600 ./dist/scriptcat.pem
|
||||
npm ci
|
||||
npm test
|
||||
npm run pack
|
||||
pnpm i
|
||||
pnpm run pack
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
|
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
@ -14,17 +14,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
name: Run tests
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Unit Test
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
pnpm i
|
||||
pnpm run coverage
|
||||
|
||||
- name: Upload coverage reports to Codecov with GitHub Action
|
||||
uses: codecov/codecov-action@v3
|
||||
uses: codecov/codecov-action@v5
|
||||
|
Reference in New Issue
Block a user