Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Feb 20, 2021
1 parent f9ffe16 commit 10ed69c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Bash

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
setps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Extract shunit
run: tar --strip-components=1 -zxvf tests/shunit2-2.1.8.tar.gz
- name: Install Ruby dependencies
run: |
gem install bashcov
gem install codecov
- name: Run tests
run: |
env -i PATH="$PATH"
bashcov tests/test
shasum --algorithm 1 --check --strict ./SHA1SUM
shasum --algorithm 256 --check --strict ./SHA256SUM
shasum --algorithm 512 --check --strict ./SHA512SUM
- name: Upload Codecov
run:
bash ./codecov -Z

0 comments on commit 10ed69c

Please sign in to comment.