Skip to content

Automatic semantic versioning #1988

Automatic semantic versioning

Automatic semantic versioning #1988

Workflow file for this run

name: unit-tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Add LocalStack AWS Credentials
run: |
mkdir -p ~/.aws
touch ~/.aws/credentials
echo '[default]' >> ~/.aws/credentials
echo 'aws_access_key_id=localstack' >> ~/.aws/credentials
echo 'aws_secret_access_key=localstack' >> ~/.aws/credentials
- name: Set Test Profile to default
run: |
aws configure --profile test-profile set region us-east-1
aws configure --profile test-profile set source_profile default
- uses: actions/setup-go@v3
with:
go-version: '1.21' # The Go version to download (if necessary) and use.
- run: go version
- name: Checkout EigenDA
uses: actions/checkout@v3
- name: Build
run: make build
- name: Test all
run: ./test.sh -coverprofile=coverage.out
- name: Upload coverage artifact
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage.out
coverage-report:
name: Coverage Report
needs: unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update coverage badge
if: github.ref == 'refs/heads/master'
uses: ./.github/actions/test-coverage
with:
chart: true
amend: true