mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-18 21:11:03 +01:00
added circleci
This commit is contained in:
52
.circleci/config.yml
Normal file
52
.circleci/config.yml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
compile:
|
||||||
|
docker:
|
||||||
|
- image: cimg/go:1.18
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: make
|
||||||
|
|
||||||
|
test:
|
||||||
|
parameters:
|
||||||
|
go_version:
|
||||||
|
type: string
|
||||||
|
os:
|
||||||
|
type: string
|
||||||
|
run_test:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
docker:
|
||||||
|
- image: circleci/golang:<< parameters.go_version >>
|
||||||
|
environment:
|
||||||
|
GOOS: "<< parameters.os >>"
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: make test
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
procfs:
|
||||||
|
jobs:
|
||||||
|
- compile
|
||||||
|
- test:
|
||||||
|
name: test-linux
|
||||||
|
os: linux
|
||||||
|
matrix:
|
||||||
|
parameters:
|
||||||
|
go_version:
|
||||||
|
- "1.16"
|
||||||
|
- "1.17"
|
||||||
|
- "1.18"
|
||||||
|
- test:
|
||||||
|
name: test-windows
|
||||||
|
os: windows
|
||||||
|
run_test: false
|
||||||
|
matrix:
|
||||||
|
parameters:
|
||||||
|
go_version:
|
||||||
|
- "1.16"
|
||||||
|
- "1.17"
|
||||||
|
- "1.18"
|
||||||
Reference in New Issue
Block a user