-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (39 loc) · 977 Bytes
/
ci-for-server.yml
File metadata and controls
41 lines (39 loc) · 977 Bytes
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
name: Server CI
on:
push:
branches:
- master
- development
paths:
- 'server/**'
- '.github/workflows/**'
pull_request:
branches:
- master
- development
paths:
- 'server/**'
- '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: ./server
PORT: 0000
steps:
- uses: actions/checkout@v2
- name: fmt
working-directory: ${{ env.WORKING_DIRECTORY }}
run: cargo fmt -- --check
- name: clippy
working-directory: ${{ env.WORKING_DIRECTORY }}
run: cargo clippy --verbose
- name: test
working-directory: ${{ env.WORKING_DIRECTORY }}
run: cargo test --verbose
- name: check
working-directory: ${{ env.WORKING_DIRECTORY }}
run: cargo check --verbose
- name: build
working-directory: ${{ env.WORKING_DIRECTORY }}
run: cargo build --verbose --release