This script automating your swift unit tests. Script handle the terminal outputs, it shows;
- Compiling errors
- Failed tests
- Which packages encountered errors
- Average test success results
name: CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# You can run script like this
- name: Run Script
run: python3 .script/main.py
You can specify which file it is under as parameters. Example path for "swift/".
name: CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# You can run script like this
- name: Run Script
run: python3 .script/main.py swift/
If your tests has any fail or compiling error.