Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Go Httpbin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Nix
Go Httpbin
Commits
5cdc623f
Commit
5cdc623f
authored
5 years ago
by
Will McCutchen
Browse files
Options
Downloads
Patches
Plain Diff
Switch from travis to github actions
parent
7f2d51cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/continuous_integration.yaml
+53
-0
53 additions, 0 deletions
.github/workflows/continuous_integration.yaml
.travis.yml
+0
-29
0 additions, 29 deletions
.travis.yml
with
53 additions
and
29 deletions
.github/workflows/continuous_integration.yaml
0 → 100644
+
53
−
0
View file @
5cdc623f
name
:
CI
on
:
[
pull_request
]
jobs
:
lint
:
name
:
Lint
runs-on
:
ubuntu-latest
steps
:
-
name
:
Setup
uses
:
actions/setup-go@v2
with
:
go-version
:
'
1.14'
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Lint
run
:
make lint
test
:
name
:
Test
runs-on
:
ubuntu-latest
steps
:
-
name
:
Setup
uses
:
actions/setup-go@v2
with
:
go-version
:
'
1.14'
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Test
run
:
make testci
-
name
:
Code coverage
uses
:
codecov/codecov-action@v1
with
:
file
:
./coverage.txt
regression_test
:
name
:
Regression Tests
runs-on
:
ubuntu-latest
strategy
:
matrix
:
go_version
:
-
'
1.11'
-
'
1.12'
-
'
1.13'
steps
:
-
name
:
Setup
uses
:
actions/setup-go@v2
with
:
go-version
:
${{matrix.go_version}}
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Test
run
:
make test
This diff is collapsed.
Click to expand it.
.travis.yml
deleted
100644 → 0
+
0
−
29
View file @
7f2d51cb
---
language
:
go
go
:
-
'
1.11'
-
'
1.12'
-
'
1.13'
script
:
-
make lint
-
make testci
after_success
:
# Upload test coverage results to codecov.io
# https://github.com/codecov/example-go/blob/b85638743b972bd0bd2af63421fe513c6f968930/README.md
-
bash <(curl -s https://codecov.io/bash)
# With this filter, we aim to restrict Travis's "Build Pushes" feature to build
# only pushes to master, while allowing the "Build Pull Requests" to build all
# incoming pull requests without redundant double-builds.
#
# This is confusing on Travis's end; this captures the exact problem we're
# trying to solve:
# https://stackoverflow.com/a/31882307
branches
:
only
:
-
master
notifications
:
email
:
false
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment