Skip to content

Commit

Permalink
netscape-go: update CI workflow, run lint in a dedicated job
Browse files Browse the repository at this point in the history
Signed-off-by: VirtualTam <[email protected]>
  • Loading branch information
virtualtam committed Oct 26, 2023
1 parent c2aef49 commit d2037f0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build-and-test.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: build-and-test

on:
push:
branches:
- main
tags:
- v*
pull_request: {}

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: false

- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: "v1.54"

build-and-test:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21"

- name: Checkout
uses: actions/checkout@v4

- name: Build
run: make build

- name: Test
run: make test

0 comments on commit d2037f0

Please sign in to comment.