Skip to content

Commit

Permalink
ci: Migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Feb 8, 2021
1 parent 1776bb7 commit 4065edf
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 33 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- ballerina
- buildpack
- cordova
- elixir
- go
- java
- lua
- nodejs
- perl
- php
- play
- pypy
- python
- ruby
- scratch
- static
steps:

- uses: actions/checkout@v2

- run: make test platform=${{ matrix.platform }}
shell: bash

# deploy:
# if: github.event_name != 'pull_request'
# needs: [test]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions tests/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ FROM platform-{PLATFORM}
WORKDIR /tests
ADD . /tests
ADD common/* /tests/common/
# These RUN true lines are an ugly hack due to
# https://github.com/moby/moby/issues/37965 and
# https://github.community/t/attempting-to-build-docker-image-with-copy-from-on-actions/16715
RUN true
ADD https://github.com/bats-core/bats-core/archive/master.tar.gz ./bats.tar.gz
RUN true
ADD https://github.com/bats-core/bats-support/archive/master.tar.gz ./bats-support.tar.gz
RUN true
ADD https://github.com/bats-core/bats-assert/archive/master.tar.gz ./bats-assert.tar.gz
RUN sudo mkdir ./bin && \
sudo tar -zxf bats.tar.gz && \
Expand Down

0 comments on commit 4065edf

Please sign in to comment.