-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (44 loc) · 1.41 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Test specification
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
generic:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Test
run: |
curl https://raw.githubusercontent.com/vrchatapi/specification/gh-pages/openapi.yaml -o openapi.yaml
rm data/state -rf
./node_modules/.bin/ava reset-cache
./node_modules/.bin/ava --serial
env:
VRCHAT_EMAIL: ${{ secrets.VRCHAT_EMAIL }}
VRCHAT_USERNAME: ${{ secrets.VRCHAT_USERNAME }}
VRCHAT_PASSWORD: ${{ secrets.VRCHAT_PASSWORD }}
VRCHAT_TOTP_SECRET: ${{ secrets.VRCHAT_TOTP_SECRET }}
VRCHAT_FRIEND_ID: ${{ secrets.VRCHAT_FRIEND_ID }}
- name: Push changes
continue-on-error: true
if: always()
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add . -A
git commit -m "ci(test: $(date -I)): new changes"
git push