-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 987 Bytes
/
ci.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
name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Build
run: |
bash build.sh
- name: start mysql / redis
run: |
sudo systemctl start mysql.service
sudo apt update
sudo apt install redis
sudo mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS test;"
- name: Test
run: go test -tags="redis,sqlite" -race -v ./...
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
# A file, directory or wildcard pattern that describes what to upload
path: cmd/authlibskin/out/*
name: ${{ github.run_number }}