-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init * change mod name, add CI * try to trigger * commit go.sum * fix lint * move wasp to the root folder * fix lint * fix lint again * link readmes * change workflow to paths * move back to dorny for required checks * fix readme lint * try trigger CI
- Loading branch information
Showing
91 changed files
with
12,247 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: WASP Lint | ||
on: | ||
push: | ||
permissions: | ||
contents: read | ||
jobs: | ||
golangci: | ||
defaults: | ||
run: | ||
working-directory: wasp | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'wasp/**' | ||
- uses: cachix/install-nix-action@v18 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Run lint | ||
if: steps.changes.outputs.src == 'true' | ||
run: |- | ||
nix develop -c make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: WASP E2E tests | ||
on: [push] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
defaults: | ||
run: | ||
working-directory: wasp | ||
env: | ||
LOKI_TENANT_ID: ${{ secrets.LOKI_TENANT_ID }} | ||
LOKI_BASIC_AUTH: ${{ secrets.LOKI_BASIC_AUTH }} | ||
LOKI_URL: ${{ secrets.LOKI_URL }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'wasp/**' | ||
- uses: cachix/install-nix-action@v18 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Run tests | ||
if: steps.changes.outputs.src == 'true' | ||
run: |- | ||
nix develop -c make test_loki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: WASP Go Tests | ||
on: [push] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
defaults: | ||
run: | ||
working-directory: wasp | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
src: | ||
- 'wasp/**' | ||
- uses: cachix/install-nix-action@v18 | ||
if: steps.changes.outputs.src == 'true' | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- name: Run tests | ||
if: steps.changes.outputs.src == 'true' | ||
run: |- | ||
nix develop -c make test_race |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,3 +84,5 @@ issues: | |
- contracts/ethereum | ||
- examples | ||
- imports | ||
- wasp/examples/* | ||
- k8s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ charts/**/README.md | |
k8s-test-runner/chart/**/*.yaml | ||
node_modules/ | ||
index.yaml | ||
wasp/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
[files] | ||
extend-exclude = ["**/go.mod", "**/go.sum", "charts", "**/*.tgz", "**/*.png"] | ||
extend-exclude = [ | ||
"**/go.mod", | ||
"**/go.sum", | ||
"charts", | ||
"**/*.tgz", | ||
"**/*.png", | ||
"wasp/HOW_IT_WORKS.md", | ||
"wasp/dashboard/**" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export LOKI_TOKEN= | ||
export LOKI_URL=http://localhost:3030/loki/api/v1/push | ||
export GRAFANA_URL=http://localhost:3000 | ||
export GRAFANA_TOKEN= | ||
export DATA_SOURCE_NAME=Loki | ||
export DASHBOARD_FOLDER=LoadTests | ||
export DASHBOARD_NAME=Wasp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
bin/ | ||
.vscode/ | ||
.idea/ | ||
.direnv/ | ||
|
||
k3dvolume/ | ||
.private.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
run: | ||
timeout: 5m | ||
issues: | ||
exclude-use-default: false | ||
exclude-dirs: | ||
- bin | ||
- imports | ||
- examples/* | ||
linters-settings: | ||
revive: | ||
rules: | ||
- name: exported | ||
severity: warning | ||
- name: dot-imports | ||
disabled: true |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @smartcontractkit/test-tooling-team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Example DockerfileWasp for k8s run | ||
# Builds all the tests in some directory that must have go.mod | ||
# All tests are built as separate binaries with name "module.test" | ||
FROM golang:1.21 as build | ||
ARG TESTS_ROOT | ||
|
||
WORKDIR /go/src | ||
COPY . . | ||
|
||
RUN echo $(pwd) | ||
RUN ls -lah | ||
WORKDIR /go/src/${TESTS_ROOT} | ||
RUN echo $(pwd) | ||
RUN ls -lah | ||
RUN cd /go/src/${TESTS_ROOT} && CGO_ENABLED=0 go test -c ./... | ||
|
||
FROM debian | ||
ARG TESTS_ROOT | ||
|
||
COPY --from=build /go/src/${TESTS_ROOT} . | ||
RUN apt-get update && apt-get install -y ca-certificates | ||
ENTRYPOINT /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.git-together | ||
.DS_Store | ||
.envrc | ||
*.log | ||
node_modules/ | ||
**/node_modules/ | ||
vendor/ | ||
tmp/ | ||
|
||
contracts/node_modules | ||
examples/ | ||
|
||
integration/ | ||
integration-scripts/ | ||
|
||
tools/gethnet/datadir/geth | ||
tools/clroot/db.bolt | ||
tools/clroot/*.log | ||
tools/clroot/tempkeys | ||
|
||
core/sgx/target/ | ||
|
||
core/*.Dockerfile | ||
chainlink | ||
|
||
# codeship | ||
codeship-*.yml | ||
*.aes | ||
dockercfg | ||
credentials.env | ||
gcr_creds.env |
Oops, something went wrong.