Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Sep 19, 2023
1 parent 98e8a81 commit e758230
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ concurrency:
jobs:
lint:
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 Down Expand Up @@ -42,9 +37,11 @@ jobs:
run: npm run build
- name: coverage (firefox)
run: npm run coverage -- --browsers FirefoxHeadless --webgl-stub --failTaskOnError --suppressPassed
- name: deploy coverage artifacts
if: ${{ env.AWS_ACCESS_KEY_ID != '' }}
run: aws s3 sync ./Build/Coverage s3://cesium-dev/cesium/$BRANCH/Build/Coverage --delete --color on
- name: archive code coverage
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: Build/Coverage/**
release-tests:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
if_error_or_failure:
runs-on: ubuntu-latest
steps:
- env:
BRANCH: ${{ github.ref_name }}
DESCRIPTION: ${{ github.event.description }}
run: echo The status of $BRANCH is $DESCRIPTION
- name: message result in slack
id: slack
uses: slackapi/slack-github-action@v1.24.0
with:
channel-id: 'test-automation'
slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
5 changes: 0 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,22 +1222,17 @@ 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"),
]);
}

async function setStatus(state, targetUrl, description, context) {
// skip if the environment does not have the token
if (!process.env.GITHUB_TOKEN) {
console.log("no token");
return;
}

Expand Down

0 comments on commit e758230

Please sign in to comment.