Skip to content

Merge pull request #401 from systemaccounting/400-make-env-local-default #24

Merge pull request #401 from systemaccounting/400-make-env-local-default

Merge pull request #401 from systemaccounting/400-make-env-local-default #24

Workflow file for this run

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