cloudflare #70
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: my_github_actions | |
| on: [push] | |
| jobs: | |
| api_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: test server | |
| run: docker-compose -f docker-compose.test.yml up --exit-code-from pict_api_test | |
| frontend_test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js v12.13.1 | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '12.13.1' | |
| - name: Cache node modules | |
| uses: actions/cache@v1 | |
| with: | |
| path: web/node_modules | |
| key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.OS }}-build-${{ env.cache-name }}- | |
| ${{ runner.OS }}-build- | |
| ${{ runner.OS }}- | |
| - name: build frontend | |
| run: | | |
| cd frontend | |
| yarn | |
| yarn export |