forked from cunymatthieu/tgenv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cunymatthieu#12 from tgenv/github-actions
Get test running and passing as github actions on pull requests
- Loading branch information
Showing
10 changed files
with
137 additions
and
63 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Test' | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
# Only checking latest Linux/UNIX on pulls to save execution times | ||
test-main-pulls: | ||
if: github.event_name == 'pull_request' | ||
runs-on: "${{ matrix.os }}" | ||
strategy: | ||
matrix: | ||
os: | ||
- 'macos-latest' | ||
- 'ubuntu-latest' | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
with: | ||
fetch-depth: 1 | ||
- name: 'Install Dependencies' | ||
run: './test/install_deps.sh' | ||
- name: 'Run all tests' | ||
run: './test/run.sh' | ||
shell: 'bash' | ||
|
||
# When we push to main, test everything in order to guarantee releases | ||
test-main-pushes: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
runs-on: "${{ matrix.os }}" | ||
strategy: | ||
matrix: | ||
os: | ||
- 'macos-11' | ||
- 'macos-10.15' | ||
- 'ubuntu-20.04' | ||
- 'ubuntu-18.04' | ||
- 'windows-2019' | ||
steps: | ||
- uses: 'actions/checkout@v2' | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: 'Install Dependencies' | ||
run: './test/install_deps.sh' | ||
|
||
- name: 'Run all tests' | ||
run: './test/run.sh' | ||
shell: 'bash' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
## Mac things | ||
.DS_Store | ||
.DS_Store | ||
|
||
version | ||
versions/ |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -uo pipefail; | ||
|
||
if [[ $(uname) == 'Darwin' ]] && [ $(which brew) ]; then | ||
brew install grep; | ||
fi; |
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 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 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 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 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