Skip to content

Commit

Permalink
update gh worklfows
Browse files Browse the repository at this point in the history
  • Loading branch information
stanistan committed Jun 21, 2024
1 parent 95b9809 commit 33e5599
Showing 1 changed file with 8 additions and 40 deletions.
48 changes: 8 additions & 40 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,68 +2,36 @@ name: Pull Request

on:
push:
branches:
- main
branches:
- main
pull_request:
branches:
branches:
- main

jobs:

# server:
# server:
# can we run the server, is the API alright?
#
# Priority is to fail fast, so first can we compile and build
# Priority is to fail fast, so first can we compile and build
# the server binary, then tests, and linting.
server:
defaults:
run:
working-directory: server
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: build-server
run: go build ./cmd/server
run: go build ./cmd/veun
- name: test
run: go test ./...
- name: lint
run: golangci-lint run

# frontend: describes the steps we take to
# ensure that the nuxt application is buildable.
#
# The priority here is to fail fast on critical things.
# 1. We can actually build the application
# 2. It typechecks & lints
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: yarn
run: yarn
- name: generate
run: yarn generate
- name: typecheck
run: yarn nuxi typecheck

lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- run: cd frontend && yarn && yarn eslint .
name: lint

# prmectl: just make sure that it's going to be ok.
prmectl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cashapp/activate-hermit@v1
- name: shellcheck bin/prmectl
run: shellcheck bin/prmectl
- name: shellcheck ./dev
run: shellcheck ./prod

0 comments on commit 33e5599

Please sign in to comment.