Skip to content

Commit

Permalink
Cleanup workflow names and paths (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Oct 10, 2024
1 parent 4c562de commit 1b29c4e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: find go projects
name: search
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.get-dirs.outputs.dirs }}
Expand All @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: Search for go.mod files
id: get-dirs
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | sed 's|^\./||' | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}

go-lint:
needs: get-dirs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: find go projects
name: search
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.get-dirs.outputs.dirs }}
Expand All @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: Search for go.mod files
id: get-dirs
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | sed 's|^\./||' | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}

go-test:
needs: get-dirs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-runtime-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- ready_for_review
jobs:
runtime-integration-tests:
name: test
name: test (runtime)
runs-on: warp-ubuntu-latest-x64-4x
if: github.event.pull_request.draft == false
steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-sdk-as-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: find examples
name: search
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.get-dirs.outputs.dirs }}
Expand All @@ -18,7 +18,6 @@ jobs:
uses: actions/checkout@v4
- name: Find Examples
id: get-dirs
# we need to build all the examples
run: echo "dirs=$(ls -d sdk/assemblyscript/examples/* | jq -Rsc 'split("\n")[:-1]' )" >> ${GITHUB_OUTPUT}

sdk-as-build-examples:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci-sdk-as-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: find examples
name: search
runs-on: ubuntu-latest
outputs:
dirs: ${{ steps.get-dirs.outputs.dirs }}
Expand All @@ -18,12 +18,11 @@ jobs:
uses: actions/checkout@v4
- name: Find Examples
id: get-dirs
# we need to lint all the examples
run: echo "dirs=$(ls -d sdk/assemblyscript/examples/* | jq -Rsc 'split("\n")[:-1]' )" >> ${GITHUB_OUTPUT}

sdk-as-lint-src:
if: github.event_name == 'pull_request'
name: lint
name: lint (sdk/assemblyscript/src)
runs-on: ubuntu-latest
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-sdk-as-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
sdk-as-test:
if: github.event_name == 'pull_request'
name: AssemblyScript SDK Unit Tests
name: test (sdk/assemblyscript/src)
runs-on: ubuntu-latest
defaults:
run:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-sdk-go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
get-dirs:
if: github.event_name == 'pull_request'
name: find tools and examples
name: search
runs-on: ubuntu-latest
outputs:
tools_dirs: ${{ steps.get-tools-dirs.outputs.dirs }}
Expand All @@ -19,10 +19,10 @@ jobs:
uses: actions/checkout@v4
- name: Find tools
id: get-tools-dirs
run: echo "dirs=$(find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: echo "dirs=$(find ./sdk/go/tools -mindepth 1 -maxdepth 1 -type d | sed 's|^\./||' | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
- name: Find examples
id: get-examples-dirs
run: echo "dirs=$(find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
run: echo "dirs=$(find ./sdk/go/examples -mindepth 1 -maxdepth 1 -type d | sed 's|^\./||' | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}

sdk-go-build-tools:
needs: get-dirs
Expand Down

0 comments on commit 1b29c4e

Please sign in to comment.