Skip to content

Add TypeScript

Add TypeScript #173

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.26.x' ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Set up config
run: cp src/config/config.go.example src/config/config.go
- name: Build
run: go build -v .
- name: Test
run: go test -v ./src/...
- name: Check TypeScript
run: go tool tsgo -p src/rawdata/js
- name: Ensure JS/CSS are transpiled
run: |
go run . bundle
git diff --exit-code public/