mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
32 lines
743 B
YAML
32 lines
743 B
YAML
|
name: Continuous Integration (Default Checks)
|
||
|
|
||
|
on:
|
||
|
workflow_call:
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: checkout repo from current commit
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Set up Go
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '1.18'
|
||
|
check-latest: true
|
||
|
cache: true
|
||
|
- name: build application
|
||
|
run: make build
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: checkout repo from current commit
|
||
|
uses: actions/checkout@v3
|
||
|
- name: Set up Go
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '1.18'
|
||
|
check-latest: true
|
||
|
cache: true
|
||
|
- name: run unit tests
|
||
|
run: make test
|