fix(tizen-remote): update appium-related packages #7953
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: appium-tizen-tv-driver Build | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
prepare_matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
versions: ${{ steps.generate-matrix.outputs.versions }} | |
steps: | |
- name: Select 3 most recent LTS versions of Node.js | |
id: generate-matrix | |
run: echo "versions=$(curl -s https://endoflife.date/api/nodejs.json | jq -c '[[.[] | select(.lts != false)][:3] | .[].cycle | tonumber]')" >> "$GITHUB_OUTPUT" | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
needs: | |
- prepare_matrix | |
strategy: | |
matrix: | |
node-version: ${{ fromJSON(needs.prepare_matrix.outputs.versions) }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
useRollingCache: true | |
- name: Run smoke, unit & E2E tests | |
run: npm run test:ci | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
useRollingCache: true | |
- name: ESLint | |
run: npm run lint | |
- name: Validate renovate config | |
uses: rinchsan/renovate-config-validator@a12a2b98cd4db923c33d1ce407c57afb43f3ff59 # v0.2.0 | |
with: | |
pattern: '.renovaterc.json' |