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
  • Loading branch information
finn-block committed Dec 21, 2023
1 parent 5f364bc commit 04d6d44
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 671 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Continuous Integration
on:
push:
branches:
- main
- '*'
pull_request:
branches:
- main
Expand Down Expand Up @@ -62,16 +62,38 @@ 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
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: trigger processing of results
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
# if: github.ref == 'refs/heads/main'
with:
script: |
const { createAppAuth } = require("@octokit/auth-app");
const gh = new Octokit({
authStrategy: createAppAuth,
auth: {
appId: process.env.CICD_ROBOT_GITHUB_APP_ID,
privateKey: process.env.CICD_ROBOT_GITHUB_APP_PRIVATE_KEY,
installationId: process.env.CICD_ROBOT_GITHUB_APP_INSTALLATION_ID,
},
})
await gh.rest.actions.createWorkflowDispatch({
owner: 'TBD54566975',
repo: 'sdk-development',
workflow_id: 'build-report.yaml',
ref: 'main',
});
test-with-browsers:
name: test-with-browsers (group ${{ matrix.group }})
Expand Down Expand Up @@ -141,10 +163,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 04d6d44

Please sign in to comment.