mirror of
https://github.com/Warky-Devs/go-mdtopdf-helper.git
synced 2025-05-18 23:27:30 +00:00
33 lines
556 B
YAML
33 lines
556 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.21'
|
|
|
|
- name: Install wkhtmltopdf
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y wkhtmltopdf
|
|
wkhtmltopdf --version
|
|
|
|
- name: Install dependencies
|
|
run: go mod download
|
|
|
|
- name: Run tests
|
|
run: go test -v ./...
|