Merge pull request #212 from brevdev/fix-lp-user #680
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: legacy | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.6' | |
cache: true | |
- name: Build | |
run: make ci | |
- name: Upload coverage | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage | |
path: coverage.* | |
- name: Upload dist | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: ./coverage.out | |
flags: ${{ runner.os }} | |
# - name: Report Status | |
# if: always() | |
# uses: ravsamhq/notify-slack-action@v1 | |
# with: | |
# status: ${{ job.status }} | |
# # notify_when: 'failure' | |
# env: | |
# SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} | |
release-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.6' | |
cache: true | |
- name: Release test | |
run: make build |