Merge pull request #391 from systemaccounting/381-graphql-subscriptio… #17
This file contains 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: client | |
on: | |
push: | |
paths: | |
- 'client/**' | |
branches-ignore: | |
- 'master' | |
jobs: | |
test: | |
name: test client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: start services | |
run: make start | |
- name: e2e test client | |
run: make -C ./client test-ci | |
deploy: | |
name: deploy client | |
needs: test | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install dependencies | |
run: make install | |
working-directory: client | |
- name: create .env | |
run: ENV_ID=${{ secrets.DEV_ENV_ID }} make get-secrets ENV=dev | |
working-directory: client | |
- name: build bundle | |
run: make build | |
working-directory: client | |
- name: sync build to s3 | |
run: ENV_ID=${{ secrets.DEV_ENV_ID }} make sync ENV=dev | |
working-directory: client | |
- name: empty cache | |
run: ENV_ID=${{ secrets.DEV_ENV_ID }} make empty-cache ENV=dev | |
working-directory: client |