Skip to content

Commit

Permalink
ci: add codemagic pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Oct 22, 2023
1 parent e2228aa commit 2095487
Show file tree
Hide file tree
Showing 10 changed files with 756 additions and 145 deletions.
3 changes: 3 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
"version": "0.2",
"language": "en",
"words": [
"artefacts",
"codemagic",
"commitlint",
"devcontainer",
"dvirtz",
"kbajalc",
"prebuilds",
"tempy",
"unzipper",
"Yitzchaki",
"zstd"
],
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rules:
'@typescript-eslint/no-floating-promises':
- warn
ignorePatterns:
- '**/scripts/*.ts'
- 'packages/*/build/**'
- 'dist/**'
- 'packages/*/dist/**'
Expand Down
32 changes: 31 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,39 @@ jobs:
path: packages/parquet-reader/prebuilds
retention-days: 1

apple-m1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # for commit linting and semantic-release
persist-credentials: false
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pipenv
run: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- run: npm ci
- run: npm run build-apple-m1
env:
CODEMAGIC_API_KEY: ${{ secrets.CODEMAGIC_API_KEY }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Upload prebuilds
if: '!env.ACT'
uses: actions/upload-artifact@v3
with:
name: prebuilds
path: packages/parquet-reader/prebuilds
retention-days: 1

release:
runs-on: ubuntu-latest
needs: build
needs:
- build
- apple-m1
env:
HUSKY: 0
steps:
Expand Down
21 changes: 21 additions & 0 deletions codemagic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cache:
cache_paths:
- $HOME/.npm
- $HOME/.conan2
- .vscode-test
workflows:
apple-m1:
instance_type: mac_mini_m1
name: Apple M1
scripts:
- name: Install pipenv
script: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- npm ci
- name: Static checks
script: |
npm run spellcheck
npm run lint
- npm test
artifacts:
- packages/parquet-reader/prebuilds
Loading

0 comments on commit 2095487

Please sign in to comment.