diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92b0e5a9..31396cee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,12 @@ -name: CI +name: lint on: - push: - branches: [ main ] pull_request: permissions: contents: read jobs: - ci: + lint: name: lint runs-on: ubuntu-latest steps: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a06b89a..48d0b6b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,8 +5,21 @@ on: pull_request: branches: [ main ] jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + cache-dependency-path: | + server/go.sum + - name: run tests + run: go test -v ./... + working-directory: ./server build: runs-on: ubuntu-latest + needs: [test] steps: - name: Checkout repository uses: actions/checkout@v3