-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (64 loc) · 1.81 KB
/
Copy pathci.yml
File metadata and controls
64 lines (64 loc) · 1.81 KB
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
name: CI
on:
workflow_dispatch: {}
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dagger/dagger-for-github@v8.1.0
with:
verb: develop
args: --debug
version: v0.18.19
- uses: actions/setup-node@v5
with:
node-version: 20
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v8.0.0
- run: make download
- run: make test
- uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Run make forge
run: make forge LOCALBIN=$RUNNER_TEMP
- name: Set path
run: echo $RUNNER_TEMP >> $GITHUB_PATH
- name: Run forge use remote
run: forge use frantjc/forge/testdata/actions/docker@${{ github.sha }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run forge use local
run: forge use ./testdata/actions/node
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run forge use dotdot
run: |
forge use frantjc/forge/testdata/actions/dotdot@${{ github.sha }}
- name: Run forge use dockerfile
run: forge use ./testdata/actions/dockerfile
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run forge use .
run: |
cd ./testdata/actions/node
forge use .
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run forge check resource
run: forge check mock -V version=v0.0.0
- name: Run forge get resource
run: forge get mock -V version=v0.0.0
- name: Run forge put resource
run: forge put mock -P version=v0.0.0