Skip to content

Commit

Permalink
Merge pull request nutanix#198 from nutanix/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
marinsalinas authored Nov 24, 2020
2 parents b3beecf + 065ea85 commit f588f8e
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 28 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/automated-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Automated Tests'

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Code Lint
run: make tools && make lint
- name: Website
run: make tools && make website-lint
- name: Test
run: make test
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Import GPG key
id: import_gpg
uses: paultyng/[email protected]
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: Set the user terminal
run: export GPG_TTY=$(tty)
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

0 comments on commit f588f8e

Please sign in to comment.