Skip to content

Commit eb6c0e6

Browse files
authored
Replace TravisCI With GitHub Actions (prebid#1754)
* Initial Commit * Finished Configuration * Remove TravisCI * Remove TravisCI * Fix Go Version Badge * Correct Fix For Go Version Badge * Removed Custom Config File Name
1 parent f7df258 commit eb6c0e6

File tree

7 files changed

+40
-34
lines changed

7 files changed

+40
-34
lines changed

.github/release-drafter.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
change-template: '* $TITLE (#$NUMBER)'
2+
template: |
3+
## Changes
4+
5+
$CHANGES
6+
7+
## Contributors
8+
9+
$CONTRIBUTORS

.github/workflows/release.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
release:
10+
name: Create Release
11+
if: github.event.base_ref == 'refs/heads/master'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get Version
15+
id: get_version
16+
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
17+
18+
- name: Create & Publish Release
19+
uses: release-drafter/[email protected]
20+
with:
21+
name: ${{ steps.get_version.outputs.version }}
22+
tag: ${{ steps.get_version.outputs.version }}
23+
version: ${{ steps.get_version.outputs.version }}
24+
publish: true
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

-30
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
[![Build Status](https://travis-ci.org/prebid/prebid-server.svg?branch=master)](https://travis-ci.org/prebid/prebid-server)
1+
[![Build](https://img.shields.io/github/workflow/status/prebid/prebid-server/Validate/master?style=flat-square)](https://github.com/prebid/prebid-server/actions/workflows/validate.yml)
22
[![Go Report Card](https://goreportcard.com/badge/github.com/prebid/prebid-server?style=flat-square)](https://goreportcard.com/report/github.com/prebid/prebid-server)
3+
![Go Version](https://img.shields.io/github/go-mod/go-version/prebid/prebid-server?style=flat-square)
34

45
# Prebid Server
56

docs/developers/automated-tests.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Automated Tests
22

3-
This project uses [TravisCI](https://travis-ci.org/) to make sure that every PR passes automated tests.
3+
This project uses GitHub Actions to make sure that every PR passes automated tests.
44
To reproduce these tests locally, use:
55

66
```

docs/developers/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ those updates must be submitted in the same Pull Request as the code changes.
4040
When you're ready, [submit a Pull Request](https://help.github.com/articles/creating-a-pull-request/)
4141
against the `master` branch of [our GitHub repository](https://github.com/prebid/prebid-server/compare).
4242

43-
Pull Requests will be vetted through [Travis CI](https://travis-ci.com/).
43+
Pull Requests will be vetted through GitHub Actions.
4444
To reproduce these same tests locally, do:
4545

4646
```bash

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
// Rev holds binary revision string
2121
// Set manually at build time using:
2222
// go build -ldflags "-X main.Rev=`git rev-parse --short HEAD`"
23-
// Populated automatically at build / release time via .travis.yml
23+
// Populated automatically at build / releases
2424
// `gox -os="linux" -arch="386" -output="{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...;`
2525
// See issue #559
2626
var Rev string

0 commit comments

Comments
 (0)