From 323899b9bd6304f54efc13bde9bf592562bf4bda Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Jan 2024 16:16:46 -0500 Subject: [PATCH] Setup workflow --- .../verify-package/check-for-CLA/index.js | 1 + .github/workflows/cla.yml | 18 ++++++ .github/workflows/dev.yml | 64 +------------------ 3 files changed, 20 insertions(+), 63 deletions(-) create mode 100644 .github/actions/verify-package/check-for-CLA/index.js create mode 100644 .github/workflows/cla.yml diff --git a/.github/actions/verify-package/check-for-CLA/index.js b/.github/actions/verify-package/check-for-CLA/index.js new file mode 100644 index 000000000000..f77b13a8207e --- /dev/null +++ b/.github/actions/verify-package/check-for-CLA/index.js @@ -0,0 +1 @@ +console.log('Testing CLA workflow!'); \ No newline at end of file diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 000000000000..e3dd53d6be09 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,18 @@ +name: CLA Checking +on: + push: # TODO: change event trigger to be pull request + +jobs: + check-cla: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/checkout@v3 + - name: install node 20 + uses: actions/setup-node@v3 + with: + node-version: '20' + - name: run script + run: node .github/actions/check-for-CLA/index.js \ No newline at end of file diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 0d9368b8080d..838e591a36e8 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -16,66 +16,4 @@ jobs: uses: actions/setup-node@v3 with: node-version: '20' - - name: npm install - run: npm install - - name: lint *.js - run: npm run eslint - - name: lint *.md - run: npm run markdownlint - - name: format code - run: npm run prettier-check - coverage: - runs-on: ubuntu-latest - env: - AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }} - AWS_REGION: us-east-1 - BRANCH: ${{ github.ref_name }} - steps: - - uses: actions/checkout@v3 - - name: install node 20 - uses: actions/setup-node@v3 - with: - node-version: '20' - - name: npm install - run: npm install - - name: build - run: npm run build - - name: coverage (firefox) - run: npm run coverage -- --browsers FirefoxHeadless --webgl-stub --failTaskOnError --suppressPassed - - name: upload coverage artifacts - if: ${{ env.AWS_ACCESS_KEY_ID != '' }} - run: aws s3 sync ./Build/Coverage s3://cesium-public-builds/cesium/$BRANCH/Build/Coverage --delete --color on - release-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: install node 20 - uses: actions/setup-node@v3 - with: - node-version: '20' - - name: npm install - run: npm install - - name: release build - run: npm run make-zip - - name: release tests (chrome) - run: npm run test -- --browsers ChromeHeadless --failTaskOnError --webgl-stub --release --suppressPassed - - name: cloc - run: npm run cloc - node-18: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: install node 18 - uses: actions/setup-node@v3 - with: - node-version: '18' - - name: npm install - run: npm install - - name: release build - run: npm run build-release - - name: package cesium module - run: npm pack &> /dev/null - - name: package workspace modules - run: npm pack --workspaces &> /dev/null - - uses: ./.github/actions/verify-package +# TODO: temporarily removed to speed up testing, add back in last commit \ No newline at end of file