diff --git a/.github/workflows/lint.yml b/.github/workflows/lint-go.yml similarity index 72% rename from .github/workflows/lint.yml rename to .github/workflows/lint-go.yml index 3337b154..c4ec174b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint-go.yml @@ -3,23 +3,24 @@ on: push: branches: - main - paths-ignore: - - "contracts/**" pull_request: - paths-ignore: - - "contracts/**" + paths: + - ".github/workflows/lint-go.yml" + - "pkg/**" + - "cmd/**" + - "dev/**" + - "go.mod" + - "go.sum" + - "tools.go" + - ".golangci.yaml" permissions: contents: read jobs: - lint: - name: Lint + lint-go: + name: Lint-Go runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: shellcheck - run: | - sudo apt-get -y install tree - dev/lint-shellcheck - uses: actions/setup-go@v3 with: go-version-file: go.mod diff --git a/.github/workflows/lint-spellcheck.yml b/.github/workflows/lint-spellcheck.yml new file mode 100644 index 00000000..46a3a7c8 --- /dev/null +++ b/.github/workflows/lint-spellcheck.yml @@ -0,0 +1,19 @@ +name: Lint Spellcheck +on: + push: + branches: + - main + pull_request: + paths: + - ".github/workflows/lint-spellcheck.yml" + - "dev/**" +jobs: + lint-spellcheck: + name: Lint Spellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: shellcheck + run: | + sudo apt-get -y install tree + dev/lint-shellcheck diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index cd345b9b..a1482f09 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -4,11 +4,10 @@ on: push: branches: - main - paths: - - "contracts/**" pull_request: paths: - "contracts/**" + - ".github/workflows/solidity.yml" concurrency: group: ci-solidity-${{ github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63105688..8544c06d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,15 @@ on: push: branches: - main - paths-ignore: - - "contracts/**" pull_request: - paths-ignore: - - "contracts/**" + paths: + - ".github/workflows/test.yml" + - "pkg/**" + - "cmd/**" + - "dev/**" + - "go.mod" + - "go.sum" + - "tools.go" jobs: test: name: Test (Node)