Skip to content

Bump actions/setup-node from 3.9.1 to 5.0.0 #258

Bump actions/setup-node from 3.9.1 to 5.0.0

Bump actions/setup-node from 3.9.1 to 5.0.0 #258

Workflow file for this run

name: restyle
on:
push:
branches:
- master
pull_request:
env:
RUBY_VERSION: 3.0.3
NODE_VERSION: 20.11.0
jobs:
build-ts:
name: 'Build Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn build
build-fixture-ts:
name: 'Build fixture Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn build
cd fixture
yarn
yarn build:android
yarn build:ios
lint-ts:
name: 'Lint Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn lint
test-ts:
name: 'Test Typescript'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: |
yarn
yarn test --forceExit
# Note that we decided not to build the iOS fixture app as it would take around 30 minutes. Since updates to the fixture app
# will generally not contain native code changes, the build is not entirely necessary and can be added in the future if needed.
build-android:
name: 'Build Android'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: ruby setup
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- run: |
cd fixture
yarn
cd android
./gradlew assembleDebug