Skip to content

Commit

Permalink
deploy: added test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Nov 22, 2023
1 parent ad4754f commit 8cc59fa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
bats-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install bats
run: |
sudo apt-get update -y
sudo apt-get install git -y
git submodule add https://github.com/bats-core/bats-core.git test/bats
git submodule add https://github.com/bats-core/bats-support.git test/test_helper/bats-support
git submodule add https://github.com/bats-core/bats-assert.git test/test_helper/bats-assert
- name: Run Bats Test
run: |
export BATS_LIB_PATH="${PWD}/test":"${PWD}/test/bats":"${PWD}/test/test_helper"; $PWD/test/bats/bin/bats test

0 comments on commit 8cc59fa

Please sign in to comment.