Skip to content

Commit

Permalink
change mod name, add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Aug 21, 2024
1 parent 4480926 commit 45c2b47
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/wasp-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: WASP Lint [Tools]
on:
push:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'tools/wasp/**'
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run lint
if: steps.changes.outputs.src == 'true'
run: |-
nix develop -c make lint
27 changes: 27 additions & 0 deletions .github/workflows/wasp-test-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: WASP E2E tests [Tools]
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
env:
LOKI_TENANT_ID: ${{ secrets.LOKI_TENANT_ID }}
LOKI_BASIC_AUTH: ${{ secrets.LOKI_BASIC_AUTH }}
LOKI_URL: ${{ secrets.LOKI_URL }}
runs-on: ubuntu20.04-8cores-32GB
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'tools/wasp/**'
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run tests
if: steps.changes.outputs.src == 'true'
run: |-
nix develop -c make test_loki
23 changes: 23 additions & 0 deletions .github/workflows/wasp-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: WASP Go Tests [Tools]
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu20.04-8cores-32GB
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'tools/wasp/**'
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run tests
if: steps.changes.outputs.src == 'true'
run: |-
nix develop -c make test_race
2 changes: 1 addition & 1 deletion tools/wasp/dashboard/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/smartcontractkit/wasp/dashboard"
"github.com/smartcontractkit/chainlink-testing-framework/wasp/dashboard"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions tools/wasp/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/smartcontractkit/wasp
module github.com/smartcontractkit/chainlink-testing-framework/wasp

go 1.21

Expand Down Expand Up @@ -28,7 +28,6 @@ require (
)

require (
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
github.com/K-Phoen/sdk v0.12.4 // indirect
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
Expand Down Expand Up @@ -174,6 +173,7 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
Expand Down

0 comments on commit 45c2b47

Please sign in to comment.