Add publish code to run only on tagged master commits #19
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 suite | |
on: | |
push: | |
jobs: | |
test: | |
name: Run test suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build seaweed docker image | |
run: docker build . --tag seaweedts | |
- name: Start swarm | |
run: docker swarm init | |
- name: Run tests | |
run: docker-compose -f seaweedfs.test.yml up --abort-on-container-exit --exit-code-from seaweedts |