Skip to content

Commit

Permalink
Why did I feel the need to run so many things on main (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnstoppableMango authored Sep 8, 2024
1 parent aa9a941 commit be6418c
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 87 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build-bun/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@ runs:
run: bun run build

- name: Test
if: github.event_name == 'pull_request'
shell: bash
working-directory: ${{ inputs.path }}
run: bun test

- name: Lint
if: github.event_name == 'pull_request'
shell: bash
# This will likely error on unrelated linting errors...
# working-directory: ${{ inputs.path }}
run: bun lint

- name: Format
if: github.event_name == 'pull_request'
uses: dprint/[email protected]
1 change: 1 addition & 0 deletions .github/actions/build-dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ runs:
${{ inputs.path }}
- name: Test
if: github.event_name == 'pull_request'
shell: bash
run: |
dotnet test \
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/build-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@ runs:
run: make build

- name: Test
if: github.event_name == 'pull_request'
shell: bash
working-directory: ${{ inputs.path }}
run: go test ./...

- name: Vet
if: github.event_name == 'pull_request'
shell: bash
working-directory: ${{ inputs.path }}
run: go vet ./...

- name: Lint
if: github.event_name == 'pull_request'
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/cli-um.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ on:
- cli/um/**
- cli/internal/**
- e2e/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-go/**
- .github/workflows/go-cli.yml
- .github/workflows/cli-um.yml
- cli/go.*
- cli/um/**
- cli/internal/**

jobs:
build:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/cli-uml2go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ on:
- cli/uml2go/**
- cli/internal/**
- docker/uml2go/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-go/**
- .github/actions/build-docker/**
- .github/workflows/go-cli.yml
- .github/workflows/cli-uml2go.yml
- cli/go.*
- cli/uml2go/**
- cli/internal/**
- docker/uml2go/**

jobs:
build:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/cli-uml2pcl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@ on:
- cli/uml2pcl/**
- cli/internal/**
- docker/uml2pcl/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-go/**
- .github/actions/build-docker/**
- .github/workflows/go-cli.yml
- .github/workflows/cli-uml2pcl.yml
- cli/go.*
- cli/uml2pcl/**
- cli/internal/**
- docker/uml2pcl/**

jobs:
build:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/packages-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ on:
- .github/workflows/bun-cli.yml
- .github/workflows/packages-ts.yml
- packages/ts/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-bun/**
- .github/workflows/bun-cli.yml
- .github/workflows/packages-ts.yml
- packages/ts/**

jobs:
build:
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/packages-uml2ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ on:
- .github/workflows/bun-cli.yml
- .github/workflows/packages-uml2ts.yml
- packages/uml2ts/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-dotnet/**
- .github/actions/build-docker/**
- .github/workflows/bun-cli.yml
- .github/workflows/packages-uml2ts.yml
- packages/uml2ts/**

jobs:
build:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ on:
- .github/workflows/proto.yml
- proto/**
- buf.*
push:
branches: [main]
tags: ['v*.*.*']
paths:
- .github/actions/build-proto/**
- .github/workflows/proto.yml
- proto/**
- buf.*

jobs:
build:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ on:
- .github/workflows/release.yml
- .goreleaser.yaml
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/workflows/release.yml
- .goreleaser.yaml
- cli/**

jobs:
bun:
name: Compile Bun apps
runs-on: ubuntu-latest
if: github.ref_name != 'main'
strategy:
matrix:
tool:
Expand Down Expand Up @@ -58,7 +57,6 @@ jobs:
goreleaser:
name: Run GoReleaser
runs-on: ubuntu-latest
if: github.ref_name != 'main'
needs: bun
permissions:
contents: write
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/runner-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,6 @@ on:
- src/Language/**
- src/RunnerTest/**
- src/Testing/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-go/**
- .github/actions/build-dotnet/**
- .github/workflows/runner-test.yml
- cli/go.*
- cli/echo/**
- cli/internal/**
- packages/echo/**
- src/Abstractions/**
- src/FSharp/**
- src/Language/**
- src/RunnerTest/**
- src/Testing/**

jobs:
go-echo:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/src-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ on:
- .github/actions/build-docker/**
- .github/workflows/src-cli.yml
- src/Cli*/**
push:
branches: ['main']
tags: ['v*.*.*']
paths:
- .github/actions/build-dotnet/**
- .github/actions/build-docker/**
- .github/workflows/src-cli.yml
- src/Cli*/**

env:
CI: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tag go modules

on:
release:
types: [released]
types: [published]

jobs:
gomod:
Expand Down

0 comments on commit be6418c

Please sign in to comment.