Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
chore(ci) attempt to set Github actions as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kikito committed Feb 2, 2021
1 parent 47cd5c7 commit ef774bf
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Test

on: [push, pull_request]

jobs:
install_and_lint:
name: Install and Lint
runs-on: ubuntu-18.04

steps:
- name: Clone Pongo
run: git clone --single-branch https://github.com/Kong/kong-pongo ../kong-pongo
- name: Pongo up
run: "../kong-pongo/pongo.sh up"
- name: Pongo build
run: "../kong-pongo/pongo.sh build"
- name: Pongo lint
run: "../kong-pongo/pongo.sh lint"
- name: move pongo down
run: mv ../kong-pongo kong-pongo
- uses: actions/upload-artifact@v2
with:
name: pongo-artifact
path: kong-pongo
retention-days: 1

test-ce-1-5-x:
name: Test Kong CE 1.5.x
runs-on: ubuntu-18.04
needs: install_and_lint

env:
KONG_VERSION: 1.5.x

steps:
- uses: actions/download-artifact@master
with:
name: pongo-artifact
path: kong-pongo
- name: make pongo ready
run: |
mv kong-pongo ../kong-pongo
chmod +x ../kong-pongo/pongo.sh
- name: Pongo run
run: "../kong-pongo/pongo.sh run"

test-ce-2-0-x:
name: Test Kong CE 2.0.x
runs-on: ubuntu-18.04
needs: install_and_lint

env:
KONG_VERSION: 2.0.x

steps:
- uses: actions/download-artifact@master
with:
name: pongo-artifact
path: ../kong-pongo
- name: make pongo ready
run: |
mv kong-pongo ../kong-pongo
chmod +x ../kong-pongo/pongo.sh
- name: Pongo run
run: "../kong-pongo/pongo.sh run"

0 comments on commit ef774bf

Please sign in to comment.