diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..adb983d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + pull_request: + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.26' + + - name: gofmt + run: test -z "$(gofmt -l .)" + + - run: go build ./... + + - run: go vet ./... + + - run: go test ./... + + - uses: actions/setup-node@v4 + with: + node-version: '22' + + - uses: pnpm/action-setup@v4 + with: + version: '12' + + - name: web check + working-directory: web + run: pnpm install --frozen-lockfile && pnpm check \ No newline at end of file