Skip to content

Commit

Permalink
fix: dynamically download the right act binary based on user os and…
Browse files Browse the repository at this point in the history
… architecture (#31)

* add post install node js script and remove bash script

* add postinstall script to dynamically install the right act binary

* update workflows

* add scripts to bundle

* fix windows post install

* remove prebuild from ci checks

* setup docker for macos

* fix unzipping in windows

* fix matrix comparison

* increase timeout

* set fail fast to false

* run act tests for linux only

* fix location of act binary download

* bump version
  • Loading branch information
shubhbapna authored Apr 27, 2023
1 parent 87683dc commit 1dc7340
Show file tree
Hide file tree
Showing 8 changed files with 519 additions and 69 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ jobs:
with:
node-version: 16
- run: npm install
- run: npm run prebuild
- run: npm run test:ci
14 changes: 9 additions & 5 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,26 @@ jobs:
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
fail-fast: true
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Setup docker for macos
if: matrix.os == 'macos-latest'
run: |
brew install docker
colima start
echo DOCKER_HOST="unix:///${HOME}/.colima/default/docker.sock" >> $GITHUB_ENV
- name: Install packages
run: npm ci

- name: Install act
run: npm run prebuild

- name: Test
run: npm test

Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const jestConfig: Config.InitialOptions = {
],
testLocationInResults: true,
testResultsProcessor: "jest-sonar-reporter",
testTimeout: 100000,
testTimeout: 120000,
testPathIgnorePatterns: ["<rootDir>/build"],
};
export default jestConfig;
Loading

0 comments on commit 1dc7340

Please sign in to comment.