Skip to content

upgrade artifact-download action to v4 to maintain compatibility with… #329

upgrade artifact-download action to v4 to maintain compatibility with…

upgrade artifact-download action to v4 to maintain compatibility with… #329

Workflow file for this run

name: Test
on:
push:
branches: ["*"]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- name: Setup go version
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Write feature keys
run: |
echo "$FEATURESV1" > /tmp/featuresv1.conf
echo "$FEATURESV2" > /tmp/featuresv2.conf
env:
FEATURESV1 : ${{secrets.FEATURES_V1}}
FEATURESV2 : ${{secrets.FEATURES_V2}}
- name: Run tests
run: |
make coverage
env:
FEATKEY_DIR : /tmp
ASC_DOCKER_USER : ${{secrets.DOCKER_USER}}
ASC_DOCKER_PASS : ${{secrets.DOCKER_PASS}}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
files: testdata/coverage/total.cov
verbose: false