Skip to content

Commit cc54476

Browse files
ostermanaknysh
andauthored
use github actions (#19)
* use github actions * run tests * run tests * fix path * update to upload artifacts * show artifacts * fix path * name artifact * Update .github/workflows/go.yml Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com> * Update .github/workflows/go.yml Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com> * Update .github/workflows/go.yml Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com> Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
1 parent 0198f5e commit cc54476

File tree

4 files changed

+59
-32
lines changed

4 files changed

+59
-32
lines changed

.github/workflows/go.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: 'go'
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Checkout the repo
15+
- name: 'Checkout'
16+
uses: actions/checkout@v2
17+
# Build Go binaries
18+
- name: 'Build Go binaries'
19+
uses: cloudposse/actions/go/build@0.15.0
20+
env:
21+
GO111MODULE: on
22+
# Architectures to build for
23+
GOX_OSARCH: >-
24+
windows/386
25+
windows/amd64
26+
freebsd/arm
27+
netbsd/386
28+
netbsd/amd64
29+
netbsd/arm
30+
linux/s390x
31+
linux/arm
32+
darwin/386
33+
darwin/amd64
34+
linux/386
35+
linux/amd64
36+
freebsd/amd64
37+
freebsd/386
38+
openbsd/386
39+
openbsd/amd64
40+
OUTPUT_PATH: ${{ github.workspace }}/release/${{ github.event.repository.name }}_
41+
# Run the go tests
42+
- name: 'Run tests'
43+
run: find ${{ github.workspace }}; ${{ github.workspace }}/release/${{ github.event.repository.name }}_linux_amd64
44+
# Upload artifacts for this build
45+
- name: 'Upload artifacts'
46+
uses: actions/upload-artifact@v2
47+
with:
48+
name: ${{ github.event.repository.name }}
49+
path: ${{ github.workspace }}/release/*
50+
# Attach Go binaries to GitHub Release
51+
- name: 'Attach artifacts to GitHub Release'
52+
if: ${{ github.event_name == 'release' }}
53+
uses: cloudposse/actions/github/release-assets@0.15.0
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
INPUT_PATH: ${{ github.workspace }}/release/${{ github.event.repository.name }}_*

.travis.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

glide.yaml

Whitespace-only changes.

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/cloudposse/tfmask
2+
3+
go 1.13

0 commit comments

Comments
 (0)