pkg(msi): auto-generate product ID #943
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: Tests | |
on: push | |
jobs: | |
tests-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
name: Tests on Linux | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile Austin | |
run: | | |
autoreconf --install | |
./configure | |
make | |
- name: Install test dependencies | |
run: | | |
sudo add-apt-repository -y ppa:deadsnakes/ppa | |
sudo apt-get -y install valgrind python2.{3..7} python3.{3..10} | |
npm install bats | |
- name: Run tests | |
run: sudo node_modules/.bin/bats test/test.bats | |
- name: Show test logs | |
run: | | |
test -f /tmp/austin_tests.log && cat /tmp/austin_tests.log || true | |
test -f ./test-suite.log && cat ./test-suite.log || true | |
if: always() | |
tests-osx: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
name: Tests on macOS | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile Austin | |
run: gcc -Wall -O3 -Os src/*.c -o src/austin -DDEBUG | |
- name: Install test dependencies | |
run: | | |
brew install python || brew upgrade python | |
brew install python@3.8 || true | |
brew install python@3.9 || true | |
brew install bats-core || true | |
brew cask install anaconda || true | |
- name: Run tests | |
run: sudo bats test/macos/test.bats | |
- name: Show test logs | |
run: test -f /tmp/austin_tests.log && cat /tmp/austin_tests.log | |
if: always() | |
tests-win: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
name: Tests on Windows | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile Austin | |
run: | | |
gcc.exe -O3 -o src/austin.exe src/*.c -lpsapi -lntdll -Wall -Os -s -DDEBUG | |
src\austin.exe --usage | |
- name: Install test dependencies | |
run: | | |
git clone --depth=1 https://github.com/bats-core/bats-core.git | |
- name: Run tests | |
run: | | |
bats-core/bin/bats test/win/test.bats | |
- name: Show austin logs | |
run: test -f /tmp/austin.log && cat /tmp/austin.log || true | |
if: always() |