mirror of
https://github.com/laravel-ls/uri
synced 2026-07-04 16:34:11 +02:00
ci/circleci: add circleci config
This commit is contained in:
parent
bb28f6e096
commit
acf7162031
1 changed files with 51 additions and 0 deletions
51
.circleci/config.yml
Normal file
51
.circleci/config.yml
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
version: 2.1
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
golang: cci-orb/golang@0.0.7
|
||||||
|
codecov: codecov/codecov@volatile
|
||||||
|
|
||||||
|
defaults: &defaults
|
||||||
|
working_directory: /go/src/github.com/go-language-server/uri
|
||||||
|
executor: golang/stretch
|
||||||
|
environment:
|
||||||
|
GO111MODULE: "on"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- golang/gomod:
|
||||||
|
file: "go.mod"
|
||||||
|
- run:
|
||||||
|
name: Test and collect coverages
|
||||||
|
command: |
|
||||||
|
make coverage/ci
|
||||||
|
- codecov/upload:
|
||||||
|
file: "/tmp/ci/artifacts/coverage.out"
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/ci/artifacts
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/ci/artifacts
|
||||||
|
- store_test_results:
|
||||||
|
path: /tmp/ci/test-results
|
||||||
|
|
||||||
|
lint:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- golang/gomod:
|
||||||
|
file: "go.mod"
|
||||||
|
- run:
|
||||||
|
name: Run lint for sources
|
||||||
|
command: |
|
||||||
|
make lint
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
workflows:
|
||||||
|
jobs:
|
||||||
|
- test:
|
||||||
|
context: org-global
|
||||||
|
- lint:
|
||||||
|
context: org-global
|
||||||
Loading…
Add table
Add a link
Reference in a new issue