-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (34 loc) · 937 Bytes
/
ci.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
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
ci:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: 1.20.x
cache-dependency-path: |
**/go.sum
- name: Run Go Build
run: |
go build -ldflags="-X github.com/pulumi/crd2pulumi/gen.Version=0.0.1" -o "${{ github.workspace }}/bin/crd2pulumi" main.go
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Run tests
run: go test -v .
working-directory: tests
- name: Goreleaser publishing dry run
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}