Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis -> GHA #3

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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