mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-23 16:25:04 +00:00
refactor: switch test and publish to bun
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: Checks
|
||||
on: [pull_request]
|
||||
on: [pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
validation:
|
||||
@@ -9,15 +9,8 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
- name: Setup node v16
|
||||
uses: actions/setup-node@v1
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Install dependencies
|
||||
uses: borales/actions-yarn@v2.0.0
|
||||
with:
|
||||
cmd: install --ignore-engines --frozen-lockfile
|
||||
- name: Run tests
|
||||
uses: borales/actions-yarn@v2.0.0
|
||||
with:
|
||||
cmd: test
|
||||
bun-version: 1.0.0
|
||||
- run: bun install
|
||||
- run: bun test
|
||||
|
||||
@@ -22,6 +22,7 @@ jobs:
|
||||
- name: Publishing records
|
||||
env:
|
||||
CI: 1
|
||||
NODE_ENV: production
|
||||
ENV: production
|
||||
DOMAIN_USER: ${{ secrets.DOMAIN_USER }}
|
||||
DOMAIN_API_KEY: ${{ secrets.DOMAIN_API_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user