Skip to content

Commit

Permalink
Travis -> GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNotFound committed Jul 3, 2024
1 parent 5042b55 commit 1c2caff
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 32 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master

env:
GOFLAGS: "-mod=vendor"

jobs:
test:
name: Test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@v4

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

- name: Setup
run: |
make tools
go mod vendor
- name: Code Lint
run: make lint

- name: Code UnitTest
run: make test

- name: Generated Code is Current
run: |
make gen
git diff --quiet
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 1c2caff

Please sign in to comment.