Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 12 additions & 39 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- releases/*
- release/*
pull_request:
types: [ assigned, opened, synchronize, reopened, labeled ]
types: [ assigned, opened, synchronize, reopened, labeled, edited ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -16,53 +16,26 @@ concurrency:
jobs:
PR:
if: github.event_name == 'pull_request'
uses: formancehq/ci/.github/workflows/go-pr.yml@main
uses: formancehq/ci/.github/workflows/go-pr.yml@v1
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 pre-commit
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

- 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
uses: formancehq/ci/.github/workflows/go-dirty.yml@v1
secrets:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

Tests:
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
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
uses: formancehq/ci/.github/workflows/go-test.yml@v1
with:
runner-profile: namespace-profile-linux-amd64-4vcpu
secrets:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

GoReleaser:
needs: [Dirty]
uses: formancehq/ci/.github/workflows/go-build.yml@main
uses: formancehq/ci/.github/workflows/go-build.yml@v1
with:
build-condition: main-and-label
build-label: build-images
Expand All @@ -84,7 +57,7 @@ jobs:
- Tests
- Dirty
steps:
- uses: formancehq/ci/actions/deploy-staging@main
- uses: formancehq/ci/actions/deploy-staging@v1
with:
component: auth
tag: ${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
dissociate: true

- uses: formancehq/ci/actions/setup-release@main
- uses: formancehq/ci/actions/setup-release@v1
with:
token: ${{ secrets.NUMARY_GITHUB_TOKEN }}

Expand Down
51 changes: 0 additions & 51 deletions Earthfile

This file was deleted.