Skip to content

github actions typos #150

github actions typos

github actions typos #150

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
permissions:
contents: write
id-token: write
jobs:
build-ui:
uses: ./.github/workflows/build-ui.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
tests:
name: Tests
needs: build-ui
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: true
check-latest: true
- uses: actions/setup-python@v5
with:
python-version: '3.12'
check-latest: true
cache: 'pip'
cache-dependency-path: 'scripts/requirements.txt'
- name: Add python dependencies
run: |
pip install -r scripts/requirements.txt
- name: Download UI file
uses: actions/download-artifact@v4
with:
name: ui
- name: Move UI file
run: mv index.html internal/webui/index.html
- name: Cache test binaries
uses: actions/cache@v4
with:
path: scripts/bins
key: test-bins-${{ hashFiles('scripts/binaries.csv') }}
enableCrossOsArchive: true
- name: Run tests
run: python scripts/tests.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload unit coverage
uses: codecov/[email protected]
with:
use_oidc: true
file: unit.profile
flags: unit
- name: Upload integration coverage
uses: codecov/[email protected]
with:
use_oidc: true
file: integration.profile
flags: integration
- name: Upload results
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.os }}-results
path: results/