Skip to content

Commit

Permalink
[ci] Properly test mac and linux in GitHub Actions CI (#9130)
Browse files Browse the repository at this point in the history
Summary:
Currently, the mac and linux tests are passing, but if we look at the logs, they are failing for every single test. It turns out that we are not even downloading the artifacts from previous build jobs. We also need to set the executable bit to actually make the tests runnable (this is not needed in circle ci jobs and also not needed for windows builds, so it's unclear why, which needs further investigation)

Pull Request resolved: #9130

Test Plan: See the CI on GitHub

Reviewed By: gkz

Differential Revision: D55020261

Pulled By: SamChou19815

fbshipit-source-id: 877195f40c22a0f408aebb72eb9f60f59ec28733
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Mar 20, 2024
1 parent cfb884f commit b0efcf1
Showing 1 changed file with 37 additions and 17 deletions.
54 changes: 37 additions & 17 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ jobs:
FLOW_RUNTESTS_PARALLELISM: 8
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: build_linux_bin
path: bin/linux
- run: chmod +x bin/linux/flow
- name: Run tests
run: ./runtests.sh bin/linux/flow | cat
runtests_macos:
Expand All @@ -314,6 +319,11 @@ jobs:
with:
xcode-version: '13.4'
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: build_macos_bin
path: bin/macos
- run: chmod +x bin/macos/flow
- name: Run tests
run: ./runtests.sh bin/macos/flow | cat
tool_test_linux:
Expand All @@ -324,6 +334,11 @@ jobs:
- build_linux
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: build_linux_bin
path: bin/linux
- run: chmod +x bin/linux/flow
- name: Install tool deps from yarn
run: (cd packages/flow-dev-tools && yarn install | cat)
- name: Run tool tests
Expand All @@ -337,27 +352,32 @@ jobs:
with:
xcode-version: '13.4'
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: build_macos_bin
path: bin/macos
- run: chmod +x bin/macos/flow
- name: Install tool deps from yarn
run: (cd packages/flow-dev-tools && yarn install | cat)
- name: Run tool tests
run: ./tool test --bin bin/macos/flow | cat
# tool_test_win:
# runs-on: windows-latest
# needs:
# - build_win
# steps:
# - uses: actions/[email protected]
# - name: Install Node LTS
# run: choco install nodejs-lts -y
# - name: Enable Corepack
# run: corepack enable
# - name: Install tool deps from yarn
# run: |-
# cd packages/flow-dev-tools
# yarn install --ignore-scripts --pure-lockfile
# - name: Run tool tests
# run: node packages/flow-dev-tools/bin/tool test --bin bin/win64/flow.exe --parallelism 1
# shell: bash
# runs-on: windows-latest
# needs:
# - build_win
# steps:
# - uses: actions/[email protected]
# - uses: actions/[email protected]
# with:
# name: build_win_bin
# path: bin/win64
# - name: Install tool deps from yarn
# run: |-
# cd packages/flow-dev-tools
# yarn install --ignore-scripts --pure-lockfile
# - name: Run tool tests
# run: node packages/flow-dev-tools/bin/tool test --bin bin/win64/flow.exe --parallelism 1
# shell: bash
ounit_test_linux:
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -662,4 +682,4 @@ jobs:
# run: |
# echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
# npm publish ./dist/npm-try-flow-website-js.tgz


0 comments on commit b0efcf1

Please sign in to comment.