Skip to content

Commit

Permalink
review .github steps
Browse files Browse the repository at this point in the history
Signed-off-by: rjtch <tchuinkoufongue@gmail.com>
  • Loading branch information
rjtch committed Jun 15, 2024
1 parent 4db3a93 commit 682ae01
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,30 @@ on:
- develop

jobs:
build-book-api:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21.0'
- name: Key generate
go-version: 'stable'
- name: Key generate
run: make keys
- name: Run build
run: make books-api

build-metrics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.0'
- name: Run build
- name: build metrics-api
run: make metrics
- name: build books-api
run: make book

test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.0'
go-version: 'stable'
- name: Test all
run: make test

0 comments on commit 682ae01

Please sign in to comment.