Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
remove cache lines
Browse files Browse the repository at this point in the history
Signed-off-by: Musilah <[email protected]>
  • Loading branch information
Musilah committed Nov 17, 2023
1 parent cc44c69 commit 33942b9
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow is licensed under the Apache License, Version 2.0
# Copyright (c) Abstract Machines

name: CI Pipeline

on:
Expand Down Expand Up @@ -158,15 +161,13 @@ jobs:
- name: Lint Users
run: |
cd users
cache restore linter
$RUNNER_TOOL_CACHE/golangci-lint/latest/x64/golangci-lint run
- name: Test Users
run: |
cd users
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -244,15 +245,13 @@ jobs:
- name: Lint Things
run: |
cd things
cache restore linter
./bin/golangci-lint run
- name: Test Things
run: |
cd things
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -324,15 +323,13 @@ jobs:
- name: Lint CoAP
run: |
cd coap
cache restore linter
./bin/golangci-lint run
- name: Test CoAP
run: |
cd coap
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -403,15 +400,13 @@ jobs:
- name: Lint HTTP
run: |
cd http
cache restore linter
./bin/golangci-lint run
- name: Test HTTP
run: |
cd http
go test ./... -race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -486,15 +481,13 @@ jobs:
- name: Lint MQTT
run: |
cd mqtt
cache restore linter
./bin/golangci-lint run
- name: Test MQTT
run: |
cd mqtt
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -653,15 +646,13 @@ jobs:
- name: Lint Bootstrap
run: |
cd bootstrap
cache restore linter
./bin/golangci-lint run
- name: Test Bootstrap
run: |
cd bootstrap
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -735,15 +726,13 @@ jobs:
- name: Lint Certs
run: |
cd certs
cache restore linter
./bin/golangci-lint run
- name: Test Certs
run: |
cd certs
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -815,15 +804,13 @@ jobs:
- name: Lint Provision
run: |
cd provision
cache restore linter
./bin/golangci-lint run
- name: Test Provision
run: |
cd provision
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
Expand Down Expand Up @@ -901,15 +888,13 @@ jobs:
- name: Lint Twins
run: |
cd twins
cache restore linter
./bin/golangci-lint run
- name: Test Twins
run: |
cd twins
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -987,15 +972,13 @@ jobs:
- name: Lint Readers
run: |
cd readers
cache restore linter
./bin/golangci-lint run
- name: Test Readers
run: |
cd readers
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -1086,15 +1069,13 @@ jobs:
- name: Lint Consumers
run: |
cd consumers
cache restore linter
./bin/golangci-lint run
- name: Test Consumers
run: |
cd consumers
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -1180,15 +1161,13 @@ jobs:
- name: Lint CLI
run: |
cd cli
cache restore linter
./bin/golangci-lint run
- name: Test CLI
run: |
cd cli
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -1258,15 +1237,13 @@ jobs:
- name: Lint LoRa
run: |
cd lora
cache restore linter
./bin/golangci-lint run
- name: Test LoRa
run: |
cd lora
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -1339,15 +1316,13 @@ jobs:
- name: Lint OPC-UA
run: |
cd opcua
cache restore linter
./bin/golangci-lint run
- name: Test OPC-UA
run: |
cd opcua
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV }}
Expand Down Expand Up @@ -1417,15 +1392,13 @@ jobs:
- name: Lint Internal
run: |
cd internal
cache restore linter
./bin/golangci-lint run
- name: Test Internal
run: |
cd internal
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
lint-and-test-logger:
Expand Down Expand Up @@ -1461,15 +1434,13 @@ jobs:
- name: Lint Logger
run: |
cd logger
cache restore linter
./bin/golangci-lint run
- name: Test Logger
run: |
cd logger
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
lint-and-test-pkg:
Expand Down Expand Up @@ -1505,15 +1476,13 @@ jobs:
- name: Lint PKG
run: |
cd pkg
cache restore linter
./bin/golangci-lint run
- name: Test PKG
run: |
cd pkg
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
lint-and-test-tools:
Expand Down Expand Up @@ -1549,15 +1518,13 @@ jobs:
- name: Lint Tools
run: |
cd tools
cache restore linter
./bin/golangci-lint run
- name: Test Tools
run: |
cd tools
go test ./... --race -v -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
cache restore codecov
./codecov
compile-check-rabbitmq:
Expand Down

0 comments on commit 33942b9

Please sign in to comment.