Skip to content

Commit

Permalink
chore: format workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jul 14, 2022
1 parent f58cc85 commit d06779c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
- uses: actions/checkout@v3

- name: Set Node.js 16.x
uses: actions/setup-node@v3.4.0
uses: actions/setup-node@v3
with:
node-version: 16.x

- uses: pnpm/action-setup@v2
with:
version: 6.30.1

- name: Install dependencies
run: pnpm install
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 'build-test'
on: # rebuild any PRs and main branch changes

on:
pull_request:
push:
branches:
Expand All @@ -11,19 +12,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 6.30.1
- run: |
pnpm install
- run: |
pnpm run all

- run: pnpm install

- run: pnpm run all

test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- name: Set Timezone
run: sudo timedatectl set-timezone "Asia/Shanghai"

- uses: actions/checkout@v3

- uses: ./
with:
roomid: '21672023'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"js-yaml": "4.1.0",
"prettier": "2.7.1",
"typescript": "4.7.4"
}
},
"packageManager": "pnpm@7.5.1"
}

0 comments on commit d06779c

Please sign in to comment.