mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
Switch from Circle to GHA.
This commit is contained in:
parent
fb1dd01cfb
commit
2cff0c9b1f
@ -1,37 +0,0 @@
|
|||||||
version: 2.1
|
|
||||||
workflows:
|
|
||||||
main:
|
|
||||||
jobs:
|
|
||||||
- build
|
|
||||||
- release:
|
|
||||||
# Only run this job on git tag pushes
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: /.*/
|
|
||||||
tags:
|
|
||||||
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
docker:
|
|
||||||
- image: cimg/base:2021.04
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: Test
|
|
||||||
command: |
|
|
||||||
. ./bin/activate-hermit
|
|
||||||
go test -v ./...
|
|
||||||
- run:
|
|
||||||
name: Lint
|
|
||||||
command: |
|
|
||||||
. ./bin/activate-hermit
|
|
||||||
go build ./...
|
|
||||||
golangci-lint run
|
|
||||||
release:
|
|
||||||
docker:
|
|
||||||
- image: cimg/base:2021.04
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run: |
|
|
||||||
. ./bin/activate-hermit
|
|
||||||
curl -sL https://git.io/goreleaser | bash
|
|
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
name: CI
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Init Hermit
|
||||||
|
run: ./bin/hermit env -r >> $GITHUB_ENV
|
||||||
|
- name: Test
|
||||||
|
run: go test ./...
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Init Hermit
|
||||||
|
run: ./bin/hermit env -r >> $GITHUB_ENV
|
||||||
|
- name: golangci-lint
|
||||||
|
run: golangci-lint run
|
Loading…
x
Reference in New Issue
Block a user