Skip to content

Commit

Permalink
Add test of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 16, 2024
1 parent 145042e commit b24b175
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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

0 comments on commit b24b175

Please sign in to comment.