feat: add macOS x64 binaries to deployment #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [pull_request] | |
jobs: | |
run-automated-tests: | |
# Because our team uses macos for our development environment, we run e2e tests also on a mac to feel more confident it will work for us. | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-dev-environment | |
- name: Run automated tests | |
run: deno test --allow-all # provide all permissions to the test script because it modifies file system to prepare for e2e tests. | |
test-script-compiles-and-runs: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup-dev-environment | |
- name: Compile script into a macOS m1 binary | |
run: | | |
deno compile --allow-all binny.ts | |
chmod +x binny | |
- name: Run the script and expect not to error | |
run: ./binny swiftlint --version # expect command to run and not throw error |