feat: Independent learna versioning #752
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: Run Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
default: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: "0" # fetch all history for all tags and branches so that changeset-builder can generate changelogs | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install | |
- name: Set DIFFERENTIAL_API_SECRET | |
run: echo "DIFFERENTIAL_API_SECRET=$(curl https://api.differential.dev/demo/token)" >> $GITHUB_ENV | |
- name: Run tests | |
run: npx lerna run test | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
JWKS_URL: ${{ secrets.JWKS_URL }} | |
PREDICTOR_API_URL: ${{ secrets.PREDICTOR_API_URL }} | |
- uses: sliteteam/github-action-git-crypt-unlock@1.2.0 | |
env: | |
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }} | |
- name: Test builds | |
run: npx lerna run build |