This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
Added test for -b option #20
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
# This workflow builds ppollls2024. | |
# For more implementation information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go. | |
name: build_and_test | |
on: | |
push: | |
paths-ignore: | |
- '*.md' | |
- '*.txt' | |
branches: [ "main" ] | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
branches: [ "main" ] | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Setup Go | |
uses: actions/setup-go@main | |
with: | |
go-version: '1.21.x' | |
cache: true | |
cache-dependency-path: "**/go.sum" | |
- name: Build ppolls2024 | |
run: | | |
go build -o . -v ./... | |
- name: Execute functions | |
run: | | |
./ppolls2024 -h | |
./ppolls2024 -f | |
./ppolls2024 -l | |
./ppolls2024 -r ec | |
./ppolls2024 -r ec -b | |
./ppolls2024 -p | |