Skip to content

Commit

Permalink
trigger sdk-development report build workflow when this repo is merged (
Browse files Browse the repository at this point in the history
#359)

also delete old .web5-spec stuff that is no longer used
  • Loading branch information
finn-block committed Mar 19, 2024
1 parent 153dd7a commit 51ed2b0
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 669 deletions.
37 changes: 27 additions & 10 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,40 @@ jobs:
- name: Terminate dwn-server
run: kill $DWN_SERVER_BACKGROUND_PROCESS || true

- name: Upload test coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to update SDK reports
uses: actions/upload-artifact@v3
with:
name: junit-results
path: packages/*/results.xml

- name: Upload test coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
- name: Generate an access token to trigger downstream repo
uses: actions/create-github-app-token@2986852ad836768dfea7781f31828eb3e17990fa # v1.6.2
id: generate_token
if: github.ref == 'refs/heads/main'
with:
app-id: ${{ secrets.CICD_ROBOT_GITHUB_APP_ID }}
private-key: ${{ secrets.CICD_ROBOT_GITHUB_APP_PRIVATE_KEY }}
owner: TBD54566975
repositories: sdk-development

- name: Trigger sdk-development report build
if: github.ref == 'refs/heads/main'
run: |
curl -L \
-H "Authorization: Bearer ${APP_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "Content-Type: application/json" \
--fail \
--data '{"ref": "main"}' \
https://api.github.com/repos/TBD54566975/sdk-development/actions/workflows/build-report.yaml/dispatches
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
APP_TOKEN: ${{ steps.generate_token.outputs.token }}


test-with-browsers:
name: test-with-browsers (group ${{ matrix.group }})
Expand Down Expand Up @@ -141,10 +165,3 @@ jobs:

- name: Terminate dwn-server
run: kill $DWN_SERVER_BACKGROUND_PROCESS || true

web5-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
- uses: TBD54566975/sdk-development@v0.2.3
9 changes: 0 additions & 9 deletions .web5-spec/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .web5-spec/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions .web5-spec/credentials.ts

This file was deleted.

15 changes: 0 additions & 15 deletions .web5-spec/did-ion.ts

This file was deleted.

40 changes: 0 additions & 40 deletions .web5-spec/encoders.ts

This file was deleted.

53 changes: 0 additions & 53 deletions .web5-spec/main.ts

This file was deleted.

Loading

0 comments on commit 51ed2b0

Please sign in to comment.