rearrange #7
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: E2E | |
on: | |
# Run on different types of events to ensure we are | |
# handling the git data correctly in each scenario | |
push: | |
pull_request: | |
schedule: | |
- cron: '17 15 * * *' | |
env: | |
AUTOBLOCKS_API_KEY: ${{ secrets.AUTOBLOCKS_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
pull-requests: write | |
jobs: | |
# py: | |
# runs-on: ubuntu-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# working-directory: e2e/python | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v4 | |
# - name: Setup python | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.11' | |
# - name: Install dependencies | |
# run: pip install -r requirements.txt | |
# - name: Run tests | |
# run: npx autoblocks testing exec -- python3 run.py | |
ts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run build | |
run: npm run build | |
- name: Install dependencies in e2e/typescript | |
run: npm ci | |
working-directory: e2e/typescript | |
- name: Run tests in e2e/typescript | |
run: ../../bin/cli.js testing exec -- npx tsx run.ts | |
working-directory: e2e/typescript |