-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.17 KB
/
test.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
name: CI
on:
push: {}
jobs:
github-pages:
name: tests
runs-on: ubuntu-22.04
steps:
- name: Check out source repository
uses: actions/checkout@v2
# - uses: darklab8/fl-configs/.github/actions/checkout-freelancer@master
# with:
# freelancer-mod: "discovery"
# freelancer-folder: ${{ github.workspace }}/fl-data
# ssh-key-base64-discovery: ${{ secrets.ID_RSA_FILES_FREELANCER_DISCOVERY }}
# - run: ls ./fl-data
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install templ
run: go install github.com/a-h/templ/cmd/[email protected]
- name: Build templ file to go
run: templ generate
# no point to do that
# - name: Patch to latest
# run: go run ${{ github.workspace }}/main.go patch
# working-directory: ${{ github.workspace }}/fl-data
- name: Test things
run: task test -- -v
env:
DARKCORE_LOG_LEVEL: "DEBUG"