Skip to content

ci: add release workflow for manual execution and artifact management #307

ci: add release workflow for manual execution and artifact management

ci: add release workflow for manual execution and artifact management #307

Workflow file for this run

name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
GO_VERSION: "1.24.3"
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Authenticate for private Go modules
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
run: |
git config --global url."https://oauth2:${GH_TOKEN}@github.com/scality".insteadOf "https://github.com/scality"
go env -w GOPRIVATE='github.com/scality'
- name: Install dependencies
run: go mod download
- name: Run tests
run: make test
build:
uses: ./.github/workflows/docker.yml
with:
push-image: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
secrets:
GH_PAT: ${{ secrets.GH_PAT }}