Skip to content

Update apps/dashboard/src/components/UpdateDetailsSheet/index.tsx #305

Update apps/dashboard/src/components/UpdateDetailsSheet/index.tsx

Update apps/dashboard/src/components/UpdateDetailsSheet/index.tsx #305

Workflow file for this run

name: Push workflow
on:
push:
branches:
- '**'
permissions:
contents: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.25
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/.go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Check for dead code
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.25
- name: Check if .env exists or create it
run: |
if [ ! -f .env ]; then
touch .env
fi
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/.go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Install Go dependencies
run: |
go mod tidy
go mod download
- name: Run tests
run: make test_app html
- name: Upload coverage artifact
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.html
retention-days: 1