Skip to content

Commit

Permalink
chore(ci): switch to Github Actions (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd authored Jun 5, 2020
1 parent d7b09c0 commit 8aefce0
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 67 deletions.
66 changes: 0 additions & 66 deletions .circleci/config.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
test-cli:
runs-on: macos-latest
timeout-minutes: 30
defaults:
run:
working-directory: ./cli
steps:
- uses: actions/setup-node@v1
with:
node-version: 14.x
- uses: actions/checkout@v2
- name: Restore Dependency Cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm test
test-ios:
runs-on: macos-latest
timeout-minutes: 30
defaults:
run:
working-directory: ./ios
steps:
- uses: actions/checkout@v2
- run: pod lib lint --allow-warnings Capacitor.podspec
- run: pod lib lint --allow-warnings CapacitorCordova.podspec
test-android:
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: ./android
steps:
- uses: actions/checkout@v2
- run: ./gradlew clean build -b capacitor/build.gradle -Pandroid.useAndroidX=true -Pandroid.enableJetifier=true
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "tslint --project tsconfig.json",
"assets": "node scripts/copy-assets.js",
"prepublishOnly": "npm run build",
"test": "jest --maxWorkers=4",
"test": "jest -i",
"watch": "npm run assets && tsc -w"
},
"files": [
Expand Down

0 comments on commit 8aefce0

Please sign in to comment.