mirror of https://github.com/curbengh/hexo-yam
Merge pull request #143 from curbengh/bun
feat(ci): run linux jobs using Bun
This commit is contained in:
commit
df3b0513e7
|
@ -7,10 +7,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.x"
|
||||
- name: Install Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
- name: Cache NPM dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -19,6 +17,6 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-npm-cache
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
run: bun install
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
run: bun run lint
|
||||
|
|
|
@ -3,22 +3,20 @@ name: Snyk
|
|||
on:
|
||||
schedule:
|
||||
# Weekly
|
||||
- cron: '0 0 * * 0'
|
||||
- cron: "0 0 * * 0"
|
||||
pull_request:
|
||||
branches:
|
||||
- 'dependabot/github_actions/github/codeql-action**'
|
||||
- "dependabot/github_actions/github/codeql-action**"
|
||||
|
||||
jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js 16.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16.x'
|
||||
- name: Install Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
run: bun install
|
||||
- name: Run Snyk to check for vulnerabilities
|
||||
uses: snyk/actions/node@master
|
||||
continue-on-error: true # To make sure that SARIF upload gets called
|
||||
|
|
|
@ -40,6 +40,8 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Install Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
- name: Cache NPM dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
@ -47,7 +49,7 @@ jobs:
|
|||
key: ${{ runner.os }}-npm-cache
|
||||
restore-keys: ${{ runner.os }}-npm-cache
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
run: bun install
|
||||
- name: Coverage
|
||||
run: npm run test
|
||||
env:
|
||||
|
|
|
@ -4,3 +4,4 @@ package-lock.json
|
|||
tmp/
|
||||
*.log
|
||||
coverage/
|
||||
bun.lockb
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[install]
|
||||
optional = false
|
||||
|
||||
[install.lockfile]
|
||||
save = false
|
Loading…
Reference in New Issue