From c01ac689e9628c952761ba0583d6c00ba5521c6a Mon Sep 17 00:00:00 2001 From: Rob Anderson Date: Tue, 12 Dec 2023 14:55:43 -0500 Subject: [PATCH] convert circleci worklfow fuzz_tests to github actions (#27801) ## Summary This pull request converts the CircleCI workflows to GitHub actions workflows. [Github Actions Importer](https://github.com/github/gh-actions-importer) was used to convert the workflows initially, then I edited them manually to correct errors in translation. ## How did you test this change? I tested these changes in a forked repo. You can [view the logs of this workflow in my fork](https://github.com/robandpdx/react/actions). https://fburl.com/workplace/f6mz6tmw --- .github/workflows/fuzz_tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/fuzz_tests.yml diff --git a/.github/workflows/fuzz_tests.yml b/.github/workflows/fuzz_tests.yml new file mode 100644 index 0000000000..492dd7dc4c --- /dev/null +++ b/.github/workflows/fuzz_tests.yml @@ -0,0 +1,32 @@ +name: facebook/react/fuzz_tests +on: + schedule: + - cron: 0 * * * * + push: + branches: + - main + workflow_dispatch: + inputs: + prerelease_commit_sha: + required: false +jobs: + test_fuzz: + if: inputs.prerelease_commit_sha == '' + runs-on: ubuntu-latest + env: + TZ: "/usr/share/zoneinfo/America/Los_Angeles" + steps: + - uses: actions/checkout@v4.1.0 + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + - name: Install dependencies + run: yarn install --frozen-lockfile + env: + ELECTRON_SKIP_BINARY_DOWNLOAD: "1" + shell: bash + - name: Run fuzz tests + run: |- + FUZZ_TEST_SEED=$RANDOM yarn test fuzz --ci + FUZZ_TEST_SEED=$RANDOM yarn test --prod fuzz --ci