Skip to content

chore(deps): update module google.golang.org/grpc to v1.83.1 [security] #448

chore(deps): update module google.golang.org/grpc to v1.83.1 [security]

chore(deps): update module google.golang.org/grpc to v1.83.1 [security] #448

Workflow file for this run

name: Default
on:
merge_group:
push:
branches:
- main
- releases/*
- release/*
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
PR:
if: github.event_name == 'pull_request'
uses: formancehq/ci/.github/workflows/go-pr.yml@main
permissions:
pull-requests: read
statuses: write
Dirty:
runs-on: namespace-profile-linux-amd64-4vcpu
steps:
- uses: namespacelabs/nscloud-checkout-action@v9
with:
fetch-depth: 0
dissociate: true
- uses: formancehq/ci/actions/setup-nix@main
- run: nix develop --impure --command just pc
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- name: Get changed files
shell: bash
run: |
hasChanged=$(git status --porcelain)
if (( $(echo ${#hasChanged}) != 0 )); then
git status
echo "There are changes in the repository"
exit 1
fi
TestsUnit:
name: Tests (Unit)
needs: [Dirty]
runs-on: namespace-profile-linux-amd64-4vcpu
steps:
- uses: namespacelabs/nscloud-checkout-action@v9
with:
fetch-depth: 0
dissociate: true
- uses: formancehq/ci/actions/setup-nix@main
- run: nix develop --impure --command just tests-unit
- uses: actions/upload-artifact@v7
with:
name: coverage-unit-report
path: ./coverage/unit_filtered.txt
TestsIntegration:
name: Tests (Integration)
needs: [Dirty]
runs-on: namespace-profile-linux-amd64-4vcpu
steps:
- uses: namespacelabs/nscloud-checkout-action@v9
with:
fetch-depth: 0
dissociate: true
- uses: formancehq/ci/actions/setup-nix@main
- run: nix develop --impure --command just tests-integration
- uses: actions/upload-artifact@v7
with:
name: coverage-integration-report
path: ./coverage/integration_filtered.txt
Tests:
runs-on: namespace-profile-linux-amd64-2vcpu
needs:
- TestsUnit
- TestsIntegration
steps:
- uses: actions/download-artifact@v8
with:
pattern: coverage-*
merge-multiple: true
- uses: codecov/codecov-action@v7.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: unit_filtered.txt,integration_filtered.txt
GoReleaser:
needs: [Dirty]
uses: formancehq/ci/.github/workflows/go-build.yml@main
with:
build-condition: main-and-label
build-label: build-images
secrets:
NUMARY_GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
Deploy:
runs-on: namespace-profile-linux-amd64-2vcpu
if: github.ref == 'refs/heads/main'
environment: staging
permissions:
contents: read
id-token: write
needs:
- GoReleaser
- Dirty
- Tests
steps:
- uses: formancehq/ci/actions/deploy-staging@main
with:
component: agent
tag: ${{ github.sha }}
auth-token: ${{ secrets.ARGOCD_REGION_AUTH_TOKEN }}
ts-oauth-client-id: ${{ secrets.TS_OIDC_OAUTH_CLIENT_ID }}
ts-audience: ${{ secrets.TS_OIDC_AUDIENCE }}
ts-tags: ${{ vars.TS_TAGS }}
ts-version: ${{ vars.TS_VERSION }}
ts-args: ${{ vars.TS_ARGS }}
ts-retry: ${{ vars.TS_RETRY }}
ts-timeout: ${{ vars.TS_TIMEOUT }}
ts-ping: ${{ vars.TS_PING }}