Use AppBuilders Version in key for project_data cache #1
Workflow file for this run
This file contains hidden or 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
| name: WIP | |
| on: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| branches: ['*'] | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: volta-cli/action@v4 | |
| - name: Get environment info | |
| run: | | |
| node --version | |
| npm --version | |
| - name: Restore node_modules cache | |
| id: restore-node-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| if: steps.restore-node-cache.outputs.cache-hit != 'true' | |
| run: | | |
| echo "Installing dependencies..." | |
| npm ci | |
| - name: Cache node_modules | |
| if: steps.restore-node-cache.outputs.cache-hit != 'true' | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} | |
| - name: Get AppBuilder Version | |
| run: | | |
| docker pull ghcr.io/sillsdev/app-builders:latest | |
| container_id=$(docker create ghcr.io/sillsdev/app-builders:latest bash) | |
| echo $container_id | |