generated from zamstation/dart_package_template
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.22 KB
/
build_workflow.yaml
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
52
53
name: Build
on:
push:
branches-ignore: ["ignore"]
pull_request:
branches-ignore: ["ignore"]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
path: workspace/code
- name: Install Dart
uses: dart-lang/setup-dart@v1
- name: Test
uses: zamstation/dart_package_deployer/actions/test@main
build:
name: Build
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
path: workspace/code
- name: Build
uses: zamstation/dart_package_deployer/actions/build@main
- name: Export Workspace
uses: actions/cache@v2
with:
path: workspace
key: build-${{ github.sha }}
dry_deploy:
name: Dry Deploy
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Import Workspace
uses: actions/cache@v2
with:
path: workspace
key: build-${{ github.sha }}
- name: Install Dart
uses: dart-lang/setup-dart@v1
- name: Dry Deploy
uses: zamstation/dart_package_deployer/actions/dry_deploy@main