Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Feb 16, 2024
1 parent 556d667 commit 9f4aea7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 33 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
pull_request

jobs:
build:
name: Go
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: false
id: go

- name: Print Go version
run: go version

- name: Build
run: go build -v .

build_docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Build Docker image
run: docker build . --file Dockerfile --tag inx-faucet:latest
10 changes: 5 additions & 5 deletions .github/workflows/gendoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
gendoc:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -19,11 +24,6 @@ jobs:
- name: Print Go version
run: go version

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Run gendoc
working-directory: tools/gendoc
run: go mod tidy && go run main.go
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/go.yml

This file was deleted.

0 comments on commit 9f4aea7

Please sign in to comment.