Skip to content

Update README

Update README #359

Workflow file for this run

# if you are looking for a working example
# refer to https://github.com/randy3k/UnitTesting-example/blob/master/.github/workflows/test.yaml
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
test-both-actions-and-package:
strategy:
fail-fast: false
matrix:
st-version: [3, 4]
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: "./actions/setup"
with:
sublime-text-version: ${{ matrix.st-version }}
- uses: "./actions/run-tests"
with:
coverage: true
- uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
test-actions: # with latest released unittesting
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: "./actions/setup"
with:
install-package: false
- uses: "./actions/run-tests"
test-package: # with v1 actions
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: SublimeText/UnitTesting/actions/setup@v1
- uses: SublimeText/UnitTesting/actions/run-tests@v1
test-as-extra-package:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
repository: randy3k/UnitTesting-example
path: UnitTesting-example
- uses: actions/checkout@v4
with:
path: UnitTesting
- uses: "./UnitTesting/actions/setup"
with:
package-path: UnitTesting-example
extra-packages: |
SublimeText/UnitTesting
- uses: "./UnitTesting/actions/run-tests"
- uses: "./UnitTesting/actions/run-syntax-tests"