bump npm #320
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: CI | |
on: push | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
jobs: | |
app-test: | |
name: Run Application Tests | |
runs-on: ubuntu-20.04 | |
env: | |
MIX_ENV: test | |
services: | |
db: | |
image: postgres | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTRGES_DB: launch_cart_test | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Setup App | |
uses: ./.github/workflows/setup | |
- name: Run Application Tests | |
uses: ./.github/workflows/app_test | |
deploy: | |
needs: app-test | |
if: github.ref == 'refs/heads/main' | |
name: Deploy to Fly.IO | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
- run: flyctl deploy -c launch-cart-dev.toml --remote-only |