-
Notifications
You must be signed in to change notification settings - Fork 50
70 lines (64 loc) · 1.68 KB
/
rust.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Rust CI
on:
push:
branches: [main]
paths:
- bench/**/*
- webapp/rust/**/*
- webapp/sql/**/*
- webapp/pdns/**/*
- development/docker-compose-common.yml
- development/docker-compose-rust.yml
- development/Makefile
- .github/workflows/rust.yml
pull_request:
paths:
- bench/**/*
- webapp/rust/**/*
- webapp/sql/**/*
- webapp/pdns/**/*
- development/docker-compose-common.yml
- development/docker-compose-rust.yml
- development/Makefile
- .github/workflows/rust.yml
jobs:
test:
runs-on: [isucon13-ci-07]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.1'
- uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable yarn
- name: Setup containers
working-directory: ./development
run: |
make down/rust
make up/rust
- name: "[frontend] build"
working-directory: ./frontend
run: make
- name: "[bench] Get deps"
working-directory: ./bench
env:
TZ: Asia/Tokyo
run: |
go get -v -t -d ./...
- name: "[bench] Test"
working-directory: ./bench
env:
TZ: Asia/Tokyo
run: |
go clean -testcache
go test -p=1 -v ./...
- name: "run bench"
working-directory: ./bench
run: |
make bench
- name: Show webapp logs
if: ${{ always() }}
working-directory: ./development
run: sudo docker compose -f docker-compose-common.yml -f docker-compose-rust.yml logs webapp