-
Notifications
You must be signed in to change notification settings - Fork 44
53 lines (50 loc) · 1.28 KB
/
master.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
46
47
48
49
50
51
52
53
name: Master and Tag Builds
on:
push:
branches:
- master
tags:
- v*
paths-ignore:
- '.github/workflows/update-providers.yml'
- 'README.md'
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
build:
name: Build and Test Bridge
strategy:
matrix:
go-version: [1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out source code
uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: |
**/go.sum
- name: Install pulumi
uses: pulumi/actions@v4
with:
pulumi-version: ^3.0.0
- name: Build
run: make build
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v3
with:
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
version: v1.51.2
- name: Lint
run: make lint
- name: Test
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}