This repository has been archived by the owner on Feb 8, 2025. It is now read-only.
ci(api): fix db:seed when run in alpine environment #659
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches-ignore: [main] | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
jobs: | |
lib: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π§ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: π¦ Install | |
run: yarn | |
- name: π§ͺ Test | |
run: yarn lib test | |
contracts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π§ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: π§ Start zkSync local testnet node | |
uses: dutterbutter/era-test-node-action@latest | |
- name: π¦ Install | |
run: yarn | |
- name: π§ͺ Test | |
run: yarn contracts test | |
api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π§ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: πΎ Setup EdgeDB | |
uses: edgedb/setup-edgedb@v1 | |
with: | |
instance-name: tests | |
- name: πΎ Initialize EdgeDB project | |
run: (cd api && edgedb project init --non-interactive) | |
- name: π¦ Install | |
run: yarn | |
- name: π§ͺ Test | |
run: yarn api test | |
api-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: ποΈ Build | |
run: > | |
docker build -f ./api/Dockerfile . | |
--build-arg TURBO_TOKEN=$TURBO_TOKEN | |
--build-arg TURBO_TEAM=$TURBO_TEAM | |
api-ampli: | |
runs-on: ubuntu-latest | |
container: | |
image: amplitudeinc/ampli | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
- name: π§ͺ Verify analytics implementation | |
run: cd api && ampli status -t ${{secrets.AMPLI_TOKEN}} --is-merged --is-latest | |
app-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π§ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: π¦ Install | |
run: yarn | |
- name: π Lint | |
run: yarn app lint | |
- name: π§ͺ Test | |
run: yarn app test | |
app-web-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π§ Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
node-version-file: '.nvmrc' | |
- name: π¦ Install | |
run: yarn | |
- name: ποΈ Build | |
run: yarn app build:web | |
app-ampli: | |
runs-on: ubuntu-latest | |
container: | |
image: amplitudeinc/ampli | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@v4 | |
- name: π§ͺ Verify analytics implementation | |
run: cd app && ampli status -t ${{secrets.AMPLI_TOKEN}} --is-merged --is-latest | |
# site: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: π§ Checkout | |
# uses: actions/checkout@v4 | |
# - name: π§ Setup Node | |
# uses: actions/setup-node@v4 | |
# with: | |
# cache: 'yarn' | |
# node-version-file: '.nvmrc' | |
# - name: π¦ Install | |
# run: yarn | |
# - name: ποΈ Build | |
# run: yarn site build | |
# - name: π§ͺ Typecheck | |
# run: yarn site typecheck |