Skip to content

Commit

Permalink
First pass at a github ci for build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed May 1, 2023
1 parent 1b43527 commit 15486e3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/logstation-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Test logstation

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '19.x'
cache: 'yarn'

- name: Install web
run: yarn install

- name: Build web with Yarn
run: yarn --cwd web build

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

0 comments on commit 15486e3

Please sign in to comment.