-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 955 Bytes
/
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
name: Test
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
cache: true
- name: Pub cache
uses: actions/cache@v4
env:
cache-name: vrchat_dart
with:
path: ${{ env.PUB_CACHE }}
key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ env.cache-name }}-
- name: Read credentials from secrets
env:
SECRET_FILE_CONTENT: ${{ secrets.TEST_CREDENTIALS_FILE }}
run: |
echo $SECRET_FILE_CONTENT | base64 -d > vrchat_dart/example/bin/credentials.dart
- name: Run example
run: |
cd vrchat_dart/example
dart pub get
dart run bin/main.dart