-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (50 loc) · 1.52 KB
/
update.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
52
name: update
on:
schedule:
- cron: '0 2 */1 * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Install Just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.MAINTENANCE_TOKEN }}
- name: Pulling Docker images
run: just compose pull
- name: Pulling Cypress Docker image
run: just compose -f docker/cypress-open.yml pull
- name: Building Docker images
run: just compose build
- name: Maintain Composer cache
uses: actions/cache@v3
with:
path: api/vendor
key: composer-${{ hashFiles('api/composer.lock') }}
restore-keys: composer-
- name: Maintain Yarn cache
uses: actions/cache@v3
with:
path: app/node_modules
key: yarn-${{ hashFiles('app/yarn.lock') }}
restore-keys: yarn-
- name: Install dependencies
run: just install
- name: Update dependencies
run: just update
- name: Fix code style
run: just fix-code-style
- run: just test
- run: just test-db
- run: just test-e2e
- name: Commit updates
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update dependencies
commit_user_name: Maintenance Bob
commit_user_email: bob@archlinux.de
commit_author: Maintenance Bob <bob@archlinux.de>