Skip to content

Download newest package version from defined repositories #124

Download newest package version from defined repositories

Download newest package version from defined repositories #124

Workflow file for this run

name: Test πŸ§ͺ
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
workflow_dispatch:
concurrency:
group: test-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test πŸ”
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.21.3
defaults:
run:
shell: bash
steps:
- name: Checkout Repo πŸ›Ž
uses: actions/checkout@v3
- name: Setup Go 🐹
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: go.sum
- name: Run Tests 🧨
run: make test
- name: Check whether JUnit XML report exists 🚦
id: check-junit-xml
uses: andstor/file-existence-action@v2
with:
files: junit-report.xml
- name: Publish Unit Test Summary πŸ“‘
uses: EnricoMi/publish-unit-test-result-action@v2
id: test-results
if: steps.check-junit-xml.outputs.files_exists == 'true' && github.event_name == 'pull_request'
with:
check_name: Unit Tests Summary
junit_files: junit-report.xml
- name: Check whether coverage reports exists πŸ’­
id: check-coverage-reports
uses: andstor/file-existence-action@v2
with:
files: >-
coverage.xml,
coverage.html
- name: Post coverage report πŸ—ž
if: steps.check-coverage-reports.outputs.files_exists == 'true'
uses: insightsengineering/coverage-action@v2
with:
path: coverage.xml
threshold: 80
fail: false
publish: true
diff: true
coverage-reduction-failure: true
new-uncovered-statements-failure: true
continue-on-error: true
- name: Upload report πŸ”Ό
if: steps.check-coverage-reports.outputs.files_exists == 'true'
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: |
coverage.html
continue-on-error: true
compilation:
name: Build πŸ—
strategy:
matrix:
go-version:
- 1.21.3
runs-on: ubuntu-latest
steps:
- name: Checkout Repo πŸ›Ž
uses: actions/checkout@v3
- name: Setup Go 🐹
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: go.sum
- name: Check if compilation works 🧱
run: make build