Skip to content

Commit

Permalink
Replace TravisCI With GitHub Actions (prebid#1754)
Browse files Browse the repository at this point in the history
* Initial Commit

* Finished Configuration

* Remove TravisCI

* Remove TravisCI

* Fix Go Version Badge

* Correct Fix For Go Version Badge

* Removed Custom Config File Name
  • Loading branch information
SyntaxNode authored and Dan Barnett committed May 11, 2021
1 parent ae4b0ba commit 6f48526
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 34 deletions.
9 changes: 9 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
change-template: '* $TITLE (#$NUMBER)'
template: |
## Changes
$CHANGES
## Contributors
$CONTRIBUTORS
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
name: Create Release
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Get Version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

- name: Create & Publish Release
uses: release-drafter/[email protected]
with:
name: ${{ steps.get_version.outputs.version }}
tag: ${{ steps.get_version.outputs.version }}
version: ${{ steps.get_version.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/prebid/prebid-server.svg?branch=master)](https://travis-ci.org/prebid/prebid-server)
[![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)
[![Go Report Card](https://goreportcard.com/badge/github.com/prebid/prebid-server?style=flat-square)](https://goreportcard.com/report/github.com/prebid/prebid-server)
![Go Version](https://img.shields.io/github/go-mod/go-version/prebid/prebid-server?style=flat-square)

# Prebid Server

Expand Down
2 changes: 1 addition & 1 deletion docs/developers/automated-tests.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Automated Tests

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

```
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ those updates must be submitted in the same Pull Request as the code changes.
When you're ready, [submit a Pull Request](https://help.github.com/articles/creating-a-pull-request/)
against the `master` branch of [our GitHub repository](https://github.com/prebid/prebid-server/compare).

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

```bash
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
// Rev holds binary revision string
// Set manually at build time using:
// go build -ldflags "-X main.Rev=`git rev-parse --short HEAD`"
// Populated automatically at build / release time via .travis.yml
// Populated automatically at build / releases
// `gox -os="linux" -arch="386" -output="{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...;`
// See issue #559
var Rev string
Expand Down

0 comments on commit 6f48526

Please sign in to comment.