Skip to content

Commit

Permalink
Travis -> GHA (#3)
Browse files Browse the repository at this point in the history
* Travis -> GHA

* Publish, too

* Update .github/workflows/test.yml

Co-authored-by: Josh Raker <[email protected]>

---------

Co-authored-by: Josh Raker <[email protected]>
  • Loading branch information
UserNotFound and joshraker authored Jul 8, 2024
1 parent d075d54 commit 51bb0f5
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 36 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master
release:
types: [published]

env:
GOFLAGS: "-mod=vendor"

jobs:
test-and-publish:
name: Test and Publish
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: '1.14'

- name: Setup
run: go mod vendor

- name: Test
run: |
make fmt
git diff --exit-code
make test
- name: Build
run: |
mkdir -p dist
export GOOS="linux"
export CGO_ENABLED=0
export GOARCH="amd64"
go build && mv chkbundle "chkbundle-${GOOS}-${GOARCH}"
sha1sum chkbundle-* > chkbundle.sum
- name: Publish artifact
if: github.event_name == 'release'
uses: actions/upload-artifact@v4
with:
path: |
chkbundle-*
chkbundle.sum
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Check certificate bundle for validity

## Usage

Required and used by https://github.com/aptible/aws-crons

### Configuration

## Contributing
Expand Down

0 comments on commit 51bb0f5

Please sign in to comment.