Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exercise test GHA #198

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This workflow will do a clean install of the dependencies and run tests across different versions
#
# Replace <track> with the track name
# Replace <image-name> with an image to run the jobs on
# Replace <action to setup tooling> with a github action to setup tooling on the image
# Replace <install dependencies> with a cli command to install the dependencies
#
# Find Github Actions to setup tooling here:
# - https://github.com/actions/?q=setup&type=&language=
# - https://github.com/actions/starter-workflows/tree/main/ci
# - https://github.com/marketplace?type=actions&query=setup
#
# Requires scripts:
# - bin/test

name: Test Exercises

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
ci:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v2
BNAndras marked this conversation as resolved.
Show resolved Hide resolved

- name: Set up Java
uses: actions/setup-java@v2
BNAndras marked this conversation as resolved.
Show resolved Hide resolved
with:
distribution: 'adopt'
java-version: '8'

- name: Cache CommandBox
uses: actions/cache@v2
BNAndras marked this conversation as resolved.
Show resolved Hide resolved
with:
path: |
$HOME/.CommandBox
key: commandbox-${{ runner.os }}-${{ hashFiles('**/*.box') }}

- name: Install CommandBox
run: |
curl -fsSl https://downloads.ortussolutions.com/debs/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ortussolutions.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/ortussolutions.gpg] https://downloads.ortussolutions.com/debs/noarch /" | sudo tee /etc/apt/sources.list.d/commandbox.list
sudo apt-get update && sudo apt-get install apt-transport-https commandbox

- name: Run Tests
run: |
box task run tasks/TestAllSolutions






BNAndras marked this conversation as resolved.
Show resolved Hide resolved
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

Loading