Skip to content

Commit

Permalink
ci: add push-activated ci workflows for go and nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-howe-1 authored Jul 12, 2024
1 parent 308c17a commit b161fb8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow runs format and build checks on the projects golang code

name: Golang CI

on: [push]

jobs:
go-format-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: "1.22.1"

- name: Format Golang
run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi

- name: Build Golang
run: make build-go
28 changes: 28 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will do a clean installation of node dependencies, and then build the source code
# For information on more advanced testing see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on: [push]

jobs:
node-js-build:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./webui

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Clean Install Node.js
run: npm ci

- name: Build Node.js
run: npm run build

0 comments on commit b161fb8

Please sign in to comment.