Prepare for 0.7.4 release #65
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: ci | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
jobs: | |
test: | |
name: Compile & Test | |
strategy: | |
matrix: | |
go-version: [1.19.2] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Consul | |
run: | | |
mkdir /tmp/consul | |
cd /tmp/consul | |
wget https://releases.hashicorp.com/consul/1.8.3/consul_1.8.3_linux_amd64.zip | |
unzip consul_1.8.3_linux_amd64.zip | |
chmod +x consul | |
- name: Extract project version from file | |
id: version | |
run: | | |
echo ::set-output name=VERSION::"$(cat VERSION)" | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run tests | |
run: | | |
export PATH="$PATH:/tmp/consul/" | |
make test | |
- name: Publish docker image locally for Snyk action | |
run: make docker-build | |
- name: Run Snyk to check for vulnerabilities in Docker image | |
run: snyk container test snowplow/dataflow-runner:${{steps.version.outputs.VERSION}} --severity-threshold=high | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |