Skip to content

Update README.md (#45) #194

Update README.md (#45)

Update README.md (#45) #194

Workflow file for this run

name: on push
on: [push]
jobs:
test-go:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: "^1.17"
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: go test ./...
deploy-web:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install & cache web dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: web
- name: Prettier
run: yarn prettier --check .
working-directory: web
- name: Lint
run: yarn eslint .
working-directory: web
- name: Check typescript
run: yarn run tsc
working-directory: web
- name: Build
run: yarn run vite build
working-directory: web
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
folder: web/dist