diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-13 19:23:00 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-13 19:23:00 -0800 |
| commit | 110ff8bc3ea0640a19f3d6e2baa361a16b19d46d (patch) | |
| tree | 036bdd8d5c4fcbc2dffcbc1448918152a24166ab /.github | |
| parent | 15e6bf85964110dd27bf09291c5971a62119e242 (diff) | |
| download | neko-110ff8bc3ea0640a19f3d6e2baa361a16b19d46d.tar.gz neko-110ff8bc3ea0640a19f3d6e2baa361a16b19d46d.tar.bz2 neko-110ff8bc3ea0640a19f3d6e2baa361a16b19d46d.zip | |
ci: setup github actions (NK-fkc119)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..98141be --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + backend: + name: Backend (Go) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -v ./... + + frontend: + name: Frontend (Node) + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: frontend/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Test + run: npm test -- --run |
