Skip to content

Merge pull request #162 from tokamak-network/OR-1790--titan-remove-ec… #57

Merge pull request #162 from tokamak-network/OR-1790--titan-remove-ec…

Merge pull request #162 from tokamak-network/OR-1790--titan-remove-ec… #57

Workflow file for this run

name: gas-oracle tests
on:
push:
paths:
- 'gas-oracle/**'
pull_request:
paths:
- 'gas-oracle/**'
branches:
- 'main'
defaults:
run:
working-directory: './gas-oracle'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: gas-oracle
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: make
- name: Unit Test
run: go test -v ./...