Skip to content

ci: pin workflow action versions #346

ci: pin workflow action versions

ci: pin workflow action versions #346

Workflow file for this run

name: Android
on:
push:
branches: ['main']
pull_request:
branches: ['main']
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
dl.google.com:443
github.com:443
objects.githubusercontent.com:443
oss.sonatype.org:443
plugins-artifacts.gradle.org:443
plugins.gradle.org:443
registry.npmjs.org:443
registry.yarnpkg.com:443
repo.maven.apache.org:443
repo.yarnpkg.com:443
services.gradle.org:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2
- name: Setup Nodejs
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: lts/*
- name: Cache node_modules
id: node-modules
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
node_modules
example/node_modules
.yarn/cache
key: node-modules
- run: |
corepack enable
cd example && yarn install
- name: Cache Gradle
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
.gradle
example/android/.gradle
~/.gradle/caches
key: gradle
- name: Build android example app
run: yarn build:android