diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 45d27c7..1872e68 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,7 +6,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - name: Install commitlint @@ -14,10 +14,52 @@ jobs: - name: Validate pull request title if: github.event_name == 'pull_request' run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose - verify: + + build: + runs-on: macos-26 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - uses: actions/setup-node@v6 + with: + node-version: 22 + cache: 'npm' + - run: npm ci + - run: npm run build + + lint: + runs-on: macos-26 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - uses: actions/setup-node@v6 + with: + node-version: 22 + cache: 'npm' + - run: npm ci + - run: npm run lint + + verify-plugin-android: + needs: ['lint', 'build'] + runs-on: macos-26 + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - uses: actions/setup-node@v6 + with: + node-version: 22 + cache: 'npm' + - run: npm ci + - run: npm run verify:android + + verify-plugin-ios: + needs: ['lint', 'build'] runs-on: macos-26 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - uses: actions/setup-node@v6 @@ -25,6 +67,4 @@ jobs: node-version: 22 cache: 'npm' - run: npm ci - - run: | - npm run lint - npm run verify + - run: npm run verify:ios