xref: /expo/.github/workflows/expotools.yml (revision bb8f4f99)
1name: Expotools
2
3on:
4  workflow_dispatch: {}
5  push:
6    branches: [master, 'sdk-*']
7    paths:
8      - .github/workflows/expotools.yml
9      - tools/**
10  pull_request:
11    branches: [master]
12    paths:
13      - .github/workflows/expotools.yml
14      - tools/**
15
16jobs:
17  build:
18    runs-on: ubuntu-18.04
19    steps:
20      - name: �� Checkout
21        uses: actions/checkout@v2
22      - name: ♻️ Restore node modules in tools
23        uses: actions/cache@v2
24        id: tools-modules-cache
25        with:
26          path: tools/node_modules
27          key: ${{ runner.os }}-tools-modules-${{ hashFiles('tools/yarn.lock') }}
28          restore-keys: |
29            ${{ runner.os }}-tools-modules-
30      - name: �� Install modules in tools dir
31        if: steps.tools-modules-cache.outputs.cache-hit != 'true'
32        run: yarn install --ignore-scripts --frozen-lockfile
33        working-directory: tools
34      - name: �� Compile TypeScript sources
35        run: yarn tsc
36        working-directory: tools
37