Add Docker workflow for building and pushing images #245
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: MacOS Install Deps | |
if: matrix.os == 'macos-latest' | |
run: brew install automake autoconf libtool unbound | |
- name: Ubuntu Install Deps | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get update && sudo apt-get install -y libunbound-dev | |
- name: Build | |
run: ./autogen.sh && ./configure --with-network=regtest && make | |
- name: Unit Tests | |
run: ./test_hnsd | |
- name: Setup Integration | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
check-latest: true | |
- name: Integration Tests | |
working-directory: ./integration | |
run: | | |
npm install | |
npm run test |