-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on existing actions for our capacitor plugins References: https://outsystemsrd.atlassian.net/browse/RMET-3980
- Loading branch information
1 parent
8c7493c
commit d172fcb
Showing
5 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Setup Tools' | ||
description: 'Setup tools needed in repo' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 23 | ||
- name: Install dependencies | ||
shell: bash | ||
run: npm i |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main, development ] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
setup: | ||
uses: ./.github/workflows/reusable_setup.yml | ||
|
||
lint: | ||
needs: 'setup' | ||
uses: ./.github/workflows/reusable_lint.yml | ||
|
||
build: | ||
needs: 'setup' | ||
uses: ./.github/workflows/reusable_build.yml | ||
|
||
verify-plugin: | ||
needs: ['setup', 'lint', 'build'] | ||
runs-on: 'macos-15' | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- working-directory: ./packages/capacitor-plugin | ||
run: npm install | ||
- working-directory: ./packages/capacitor-plugin | ||
run: npm run verify |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Build Plugin" | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
THE_GH_RELEASE_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: 'ubuntu-24.04' | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 'Setup Tools' | ||
uses: ./.github/actions/setup-tools | ||
|
||
- name: 'Build Packages' | ||
working-directory: ./packages/capacitor-plugin | ||
run: npm run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Lint Plugin" | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
lint: | ||
runs-on: 'macos-15' | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 'Setup Tools' | ||
uses: ./.github/actions/setup-tools | ||
|
||
- name: 'Lint Packages' | ||
working-directory: ./packages/capacitor-plugin | ||
run: npm run lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Setup" | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
setup: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-24.04', 'macos-15'] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
steps: | ||
- name: 'Checkout code' | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 'Setup Tools' | ||
uses: ./.github/actions/setup-tools |