Skip to content

Update dependency @types/node to v20.17.6 #1078

Update dependency @types/node to v20.17.6

Update dependency @types/node to v20.17.6 #1078

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
all:
name: Find all examples
runs-on: ubuntu-latest
outputs:
languages: ${{ steps.build-matrix.outputs.languages }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: discover all examples
id: build-matrix
run: node .github/generate-test-steps.js >> "$GITHUB_OUTPUT"
javascript:
name: JavaScript / ${{ matrix.example.name }}
needs: all
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: ${{ fromJSON(needs.all.outputs.languages).javascript }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.example.misc.node-version || '20.4.0' }}
- name: test setup
run: ${{ matrix.example.tests.pre }}
working-directory: ${{ matrix.example.directory }}
if: matrix.example.tests.pre != null
- name: test
run: ${{ matrix.example.tests.command }}
working-directory: ${{ matrix.example.directory }}
kotlin:
name: Kotlin / ${{ matrix.example.name }}
needs: all
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
example: ${{ fromJSON(needs.all.outputs.languages).kotlin }}
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Set up JDK 17
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
java-version: "17"
distribution: "adopt"
- name: Cache Gradle packages
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Android SDK
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3.2.1
- name: test setup
run: ${{ matrix.example.tests.pre }}
working-directory: ${{ matrix.example.directory }}
if: matrix.example.test.pre != null
- name: test in android emulator
uses: reactivecircus/android-emulator-runner@f0d1ed2dcad93c7479e8b2f2226c83af54494915 # v3.32.0
with:
api-level: 29
script: ${{ matrix.example.tests.command }}
working-directory: ${{ matrix.example.directory }}
automerge:
name: Automerge Dependabot PRs
runs-on: ubuntu-latest
needs: [javascript, kotlin]
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
pull-requests: write
issues: write
repository-projects: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve and merge
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: |
set -ex
gh pr review --approve "${{github.event.pull_request.html_url}}"
gh pr merge --auto --rebase "${{github.event.pull_request.html_url}}"
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}