Skip to content

Commit

Permalink
ci: do not build everything every time (#36)
Browse files Browse the repository at this point in the history
* ci: do not build everything every time

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* ci: if workflow itself changes, run it too

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* ci: always on main

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 authored Feb 1, 2024
1 parent bafe6fb commit 07365d4
Show file tree
Hide file tree
Showing 10 changed files with 255 additions and 151 deletions.
142 changes: 0 additions & 142 deletions .github/workflows/build.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: editor

on:
push:
branches:
- main
pull_request:
paths:
- ./editor
- ./.github/workflows/editor.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./editor
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./editor/go.mod
cache: true
cache-dependency-path: ./editor.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/errors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: errors

on:
push:
branches:
- main
pull_request:
paths:
- ./errors
- ./.github/workflows/errors.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./errors
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./errors/go.mod
cache: true
cache-dependency-path: ./errors.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/higherorder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: higherorder

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/higherorder
- ./.github/workflows/higherorder.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/higherorder
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/higherorder/go.mod
cache: true
cache-dependency-path: ./exp/higherorder.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/ordered.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: ordered

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/ordered
- ./.github/workflows/ordered.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/ordered
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/ordered/go.mod
cache: true
cache-dependency-path: ./exp/ordered.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/slice.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: slice

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/slice
- ./.github/workflows/slice.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/slice
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/slice/go.mod
cache: true
cache-dependency-path: ./exp/slice.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/strings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: strings

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/strings
- ./.github/workflows/strings.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/strings
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/strings/go.mod
cache: true
cache-dependency-path: ./exp/strings.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/teatest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: teatest

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/teatest
- ./.github/workflows/teatest.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/teatest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/teatest/go.mod
cache: true
cache-dependency-path: ./exp/teatest.sum
- run: go build -v ./...
- run: go test -race -v ./...
30 changes: 30 additions & 0 deletions .github/workflows/term.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# auto-generated by scripts/dependabot. DO NOT EDIT.
name: term

on:
push:
branches:
- main
pull_request:
paths:
- ./exp/term
- ./.github/workflows/term.yml

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./exp/term
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./exp/term/go.mod
cache: true
cache-dependency-path: ./exp/term.sum
- run: go build -v ./...
- run: go test -race -v ./...
Loading

0 comments on commit 07365d4

Please sign in to comment.