1name: Expotools 2 3on: 4 workflow_dispatch: {} 5 push: 6 branches: [main, 'sdk-*'] 7 paths: 8 - .github/workflows/expotools.yml 9 - tools/** 10 pull_request: 11 paths: 12 - .github/workflows/expotools.yml 13 - tools/** 14 15concurrency: 16 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} 17 cancel-in-progress: true 18 19jobs: 20 build: 21 runs-on: ubuntu-22.04 22 steps: 23 - name: Checkout 24 uses: actions/checkout@v3 25 - name: ♻️ Restore caches 26 uses: ./.github/actions/expo-caches 27 id: expo-caches 28 with: 29 yarn-tools: 'true' 30 - name: Install modules in tools dir 31 if: steps.expo-caches.outputs.yarn-tools-hit != 'true' 32 run: yarn install --ignore-scripts --frozen-lockfile 33 working-directory: tools 34 - name: Compile TypeScript sources 35 run: yarn build 36 working-directory: tools 37 - name: Typecheck sources 38 run: yarn tsc --noEmit 39 working-directory: tools 40 - name: Lint TypeScript sources 41 run: yarn lint --max-warnings 0 42 working-directory: tools 43