Skip to content

Commit

Permalink
Statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Sep 19, 2023
1 parent 9833d37 commit 2b4d543
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
run: npm run prettier-check
coverage:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
BRANCH: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: install node 18
Expand All @@ -37,11 +42,9 @@ jobs:
run: npm run build
- name: coverage (firefox)
run: npm run coverage -- --browsers FirefoxHeadless --webgl-stub --failTaskOnError --suppressPassed
- name: archive code coverage
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: Build/Coverage/**
- name: upload coverage artifacts
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: aws s3 sync ./Build/Coverage s3://cesium-dev/cesium/$BRANCH/Build/Coverage --delete --color on
release-tests:
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@ jobs:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel-id: 'test-automation'
slack-message: ":gh-failed: \n [Commit ${{ github.sha }}](${{ github.event.head_commit.url }}) on ${{ github.repository }}@${{ github.ref_name }} failed."
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":gh-failed: [Commit ${{ github.sha }}](${{ github.event.head_commit.url }}) on ${{ github.repository }}@${{ github.ref_name }} failed."
}
}
]
}
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,11 +1222,15 @@ export async function deployStatus() {
const deployUrl = `${devDeployUrl + process.env.BRANCH}/`;
const zipUrl = `${deployUrl}Cesium-${version}.zip`;
const npmUrl = `${deployUrl}cesium-${version}.tgz`;
const coverageUrl = `${
devDeployUrl + process.env.BRANCH
}/Build/Coverage/index.html`;

return Promise.all([
setStatus(status, deployUrl, message, "deployment"),
setStatus(status, zipUrl, message, "zip file"),
setStatus(status, npmUrl, message, "npm package"),
setStatus(status, coverageUrl, message, "coverage results"),
]);
}

Expand Down Expand Up @@ -1257,8 +1261,6 @@ async function setStatus(state, targetUrl, description, context) {
);

const result = await response.json();
console.log(result);

return result;
}

Expand Down

0 comments on commit 2b4d543

Please sign in to comment.