-
-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (48 loc) · 1.25 KB
/
upgrade.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: Auto Upgrade
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * THU'
jobs:
webapp:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: dev
- name: 'Upgrade web dependencies'
working-directory: web
run: yarn upgrade
- name: 'Check prod build'
working-directory: web
run: yarn build
- name: Commit & Push
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: upgrade web dependencies
branch: dev
backend:
runs-on: ubuntu-latest
steps:
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
- name: Check out code
uses: actions/checkout@v3
with:
ref: dev
- name: 'Upgrade Go dependencies'
run: go get -v -u ./...
- name: Check tests
run: task test
- name: Check build
run: task build-be
- name: Commit & Push
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: upgrade go packages
branch: dev