Skip to content

[No QA] Upgrade ESLint #1008

[No QA] Upgrade ESLint

[No QA] Upgrade ESLint #1008

name: Test GitHub Actions workflows
on:
workflow_dispatch:
workflow_call:
pull_request:
types: [opened, reopened, synchronize]
branches-ignore: [staging, production]
paths: ['.github/**']
jobs:
testGHWorkflows:
if: ${{ github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' || github.event_name == 'workflow_call' }}
runs-on: ubuntu-latest
env:
CI: true
name: test GitHub Workflows
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: Expensify/App/.github/actions/composite/setupNode@main
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Login to GitHub Container Regstry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: OSBotify
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install Act
run: brew install act
- name: Set ACT_BINARY
run: echo "ACT_BINARY=$(which act)" >> "$GITHUB_ENV"
- name: Run tests
run: npm run workflow-test