Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Test
name: Build

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
- master

jobs:
build:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -28,12 +28,23 @@ jobs:
- name: Build helloworld binary
run: GOOS=linux GOARCH=amd64 go build -o ./.artifacts/helloworld ./cmd/helloworld

test:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/setup-node@v2
with:
go-version: '1.17.6'
- name: Run unit tests
run: go test ./pkg/... ./cmd/...
node-version: '16.13.0'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build static assets
run: echo "WIP"
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "Validate Generated Code"
name: CodeGen

on:
pull_request:
branches: [ master ]

jobs:
analyze:
name: Analyze
name: validate
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
# push:
Expand All @@ -22,7 +11,6 @@ on:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Artifacts
name: Publish

on:
push:
Expand All @@ -9,7 +9,7 @@ env:
REGISTRY: ghcr.io

jobs:
publish-image:
image:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17.6'
- name: Run unit tests
run: go test ./pkg/... ./cmd/...

frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.13.0'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Yarn install
working-directory: pkg/app/web
run: yarn install
- name: Run unit tests
working-directory: pkg/app/web
run: echo "WIP"