Skip to content

Commit

Permalink
Merge pull request #141 from k1LoW/use-github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
k1LoW authored Nov 2, 2019
2 parents 8221209 + 6434d6c commit b5d24bd
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 33 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: build

on: push

jobs:
job-test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
go_version: [1.12, 1.13]
steps:
- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go_version }}
id: go

- name: Install packages
run: |
sudo apt install sqlite3
sudo pip install codecov
- name: Check out source code
uses: actions/checkout@v1

- name: Start Databases
run: |
docker-compose up -d
sleep 20s
- name: Run tests
run: env PATH=`go env GOPATH`/bin:$PATH make ci
env:
GOPROXY: "https://proxy.golang.org"

- name: Decrypt Secrets
run: gpg --quiet --batch --yes --decrypt --passphrase="$GCP_CLIENT_SECRETS_PASSPHRASE" --output $GITHUB_WORKSPACE/client_secrets.json $GITHUB_WORKSPACE/client_secrets.json.gpg
if: github.ref == 'refs/heads/master'
env:
GCP_CLIENT_SECRETS_PASSPHRASE: $

- name: Run BigQuery Integration
run: env PATH=`go env GOPATH`/bin:$PATH make test_bigquery
if: github.ref == 'refs/heads/master'
env:
GOPROXY: "https://proxy.golang.org"

- name: Run codecov
run: codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BUILD_LDFLAGS = -X $(PKG).commit=$(COMMIT) -X $(PKG).date=$(DATE)

default: test

ci: build test testdoc test_too_many_tables test_json sec
ci: depsdev build test testdoc test_too_many_tables test_json sec

test:
usql pg://postgres:pgpass@localhost:55432/testdb?sslmode=disable -f testdata/pg.sql
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<br><br>
</p>

[![Build Status](https://travis-ci.org/k1LoW/tbls.svg?branch=master)](https://travis-ci.org/k1LoW/tbls) [![GitHub release](https://img.shields.io/github/release/k1LoW/tbls.svg)](https://github.com/k1LoW/tbls/releases) [![codecov](https://codecov.io/gh/k1LoW/tbls/branch/master/graph/badge.svg)](https://codecov.io/gh/k1LoW/tbls) [![Go Report Card](https://goreportcard.com/badge/github.com/k1LoW/tbls)](https://goreportcard.com/report/github.com/k1LoW/tbls) [![Docker Build](https://img.shields.io/docker/cloud/build/k1low/tbls)](https://hub.docker.com/r/k1low/tbls)
[![Build Status](https://github.com/k1LoW/tbls/workflows/build/badge.svg)](https://github.com/k1LoW/tbls/actions) [![GitHub release](https://img.shields.io/github/release/k1LoW/tbls.svg)](https://github.com/k1LoW/tbls/releases) [![codecov](https://codecov.io/gh/k1LoW/tbls/branch/master/graph/badge.svg)](https://codecov.io/gh/k1LoW/tbls) [![Go Report Card](https://goreportcard.com/badge/github.com/k1LoW/tbls)](https://goreportcard.com/report/github.com/k1LoW/tbls) [![Docker Build](https://img.shields.io/docker/cloud/build/k1low/tbls)](https://hub.docker.com/r/k1low/tbls)

`tbls` is a CI-Friendly tool for document a database, written in Go.

Expand Down
Binary file removed client_secrets.json.enc
Binary file not shown.
Binary file added client_secrets.json.gpg
Binary file not shown.

0 comments on commit b5d24bd

Please sign in to comment.