Skip to content

Add test of github actions #1

Add test of github actions

Add test of github actions #1

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- github-ci
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image for testing
run: |
docker build --target test -t zephir-api2:test .
- name: Run tests
run: |
docker run --rm zephir-api2:test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: pytest-results
path: ./tests