diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34d0ff2..817eee6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,38 +9,35 @@ jobs: build-book-api: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: '1.13.0' - - - name: Install dependencies - run: | - go version - go get -u golang.org/x/lint/golint + go-version: '1.21.0' - name: Key generate run: make keys - name: Run build run: make books-api - # - name: Run Tests - # run: make test - - build-metrics: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: '1.13.0' - - - name: Install dependencies - run: | - go version - go get -u golang.org/x/lint/golint - + go-version: '1.21.0' - name: Run build run: make metrics + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.21.0' + - name: Test all + run: make test +