xref: /expo/.github/workflows/expotools.yml (revision ab22f034)
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    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-18.04
22    steps:
23      - name: �� Checkout
24        uses: actions/checkout@v2
25      - name: ♻️ Restore node modules in tools
26        uses: actions/cache@v2
27        id: tools-modules-cache
28        with:
29          path: tools/node_modules
30          key: ${{ runner.os }}-tools-modules-${{ hashFiles('tools/yarn.lock') }}
31          restore-keys: |
32            ${{ runner.os }}-tools-modules-
33      - name: �� Install modules in tools dir
34        if: steps.tools-modules-cache.outputs.cache-hit != 'true'
35        run: yarn install --ignore-scripts --frozen-lockfile
36        working-directory: tools
37      - name: �� Compile TypeScript sources
38        run: yarn tsc
39        working-directory: tools
40