build(deps-dev): bump webpack-dev-middleware in /web/cli #3312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ποΈ Build | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
name: π€ Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: 3.11.1 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
- name: π€ Test Dashboard Frontend | |
run: make test-dashboard-frontend | |
- name: Go Build Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
- name: Go Mod Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: π€ Test | |
run: | | |
git config --global user.email "git@gimlet.io" | |
git config --global user.name "Github Actions" | |
make test | |
- name: π Test with Postgres store | |
run: | | |
git config --global user.email "git@gimlet.io" | |
git config --global user.name "Github Actions" | |
make test-with-postgres | |
cli: | |
name: ποΈ Build CLI | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- name: Set Node version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.1.0 | |
- id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
- name: Go Build Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
- name: Go Mod Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: ποΈ Build chart configure frontend | |
run: make build-cli-frontend | |
- name: ποΈ Build stack frontend | |
run: make build-stack-frontend | |
- name: ποΈ Build CLI | |
run: make build-cli | |
env: | |
VERSION: "ci-build" | |
agent: | |
name: ποΈ Build Agent | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
- name: Go Build Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
- name: Go Mod Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: ποΈ Build Gimlet Agent | |
run: make build-agent | |
env: | |
VERSION: "ci-build" | |
dashboard: | |
name: ποΈ Build Dashboard | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
- name: Go Build Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
- name: Go Mod Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: ποΈ Build Dashboard | |
run: make build-dashboard | |
env: | |
VERSION: "ci-build" | |
dashboard-frontend: | |
name: ποΈ Build Dashboard Frontend | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 5 | |
- name: ποΈ Build dashboard frontend | |
run: make build-dashboard-frontend | |
image-builder: | |
name: ποΈ Build Image builder | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- name: β¬οΈ Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 5 | |
- name: ποΈ Build Image builder | |
run: make build-image-builder | |
env: | |
VERSION: "ci-build" |