Skip to content

Commit def99d4

Browse files
committed
Migrate to GH actions
1 parent 287e07a commit def99d4

3 files changed

Lines changed: 34 additions & 11 deletions

File tree

.github/workflows/push.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'GitHub Actions'
2+
'on':
3+
- push
4+
concurrency: 'ci-${{ github.ref }}'
5+
env:
6+
APP_IMAGE: keboola/google-client-bundle
7+
DOCKERHUB_USER: '${{ secrets.DOCKERHUB_USER }}'
8+
DOCKERHUB_TOKEN: '${{ secrets.DOCKERHUB_TOKEN }}'
9+
10+
CLIENT_ID: '${{ secrets.CLIENT_ID }}'
11+
CLIENT_SECRET: '${{ secrets.CLIENT_SECRET }}'
12+
REFRESH_TOKEN: '${{ secrets.REFRESH_TOKEN }}'
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
-
18+
name: 'Check out the repo'
19+
uses: actions/checkout@v2
20+
-
21+
name: 'Docker login'
22+
if: env.DOCKERHUB_TOKEN
23+
run: 'docker login --username "$DOCKERHUB_USER" --password "$DOCKERHUB_TOKEN"'
24+
-
25+
name: 'Build image'
26+
run: 'docker build -t $APP_IMAGE .'
27+
-
28+
name: 'Run tests'
29+
run: |
30+
docker run \
31+
-e CLIENT_ID \
32+
-e CLIENT_SECRET \
33+
-e REFRESH_TOKEN \
34+
${{env.APP_IMAGE}} composer ci

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Keboola Google API Client
2-
[![Build Status](https://travis-ci.org/keboola/google-client-bundle.svg?branch=master)](https://travis-ci.org/keboola/google-client-bundle)
32

43
Basic client for Google APIs

0 commit comments

Comments
 (0)