added test #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: N50 Calculator CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc make zlib1g-dev | |
- name: Build N50 Calculator | |
run: make | |
- name: Run tests | |
run: make test | |
- name: Run simple test | |
run: make test-simple | |
- name: Archive binary | |
uses: actions/upload-artifact@v2 | |
with: | |
name: n50-calculator | |
path: bin/n50 |