Skip to content

0.4.6

0.4.6 #30

Workflow file for this run

name: ci
on:
pull_request:
branches:
- '**'
jobs:
backend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.6'
- name: Run linter
working-directory: ./backend
run: |
test -z $(gofmt -l .)
backend-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.6'
- name: Run tests
working-directory: ./backend
run: |
go test -race ./...
backend-vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.6'
- name: Run code vetter
working-directory: ./backend
run: |
go vet ./...
frontend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up and run linter
working-directory: ./frontend
run: |
pnpm install
pnpm lint
frontend-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up and run tests
working-directory: ./frontend
run: |
pnpm install
pnpm test run
frontend-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Set up and run build script
working-directory: ./frontend
run: |
pnpm install
pnpm build
build:
needs:
- backend-lint
- backend-test
- backend-vet
- frontend-lint
- frontend-test
- frontend-build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: false
tags: kubetail:latest