26 lines
567 B
YAML
26 lines
567 B
YAML
name: Tests
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup V
|
|
run: |
|
|
wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
|
unzip -q /tmp/v.zip -d /tmp
|
|
echo /tmp/v >> "$GITHUB_PATH"
|
|
|
|
- name: Run tests
|
|
run: |
|
|
sed -i tests/mymod_test.out -e 's/846284/83d954/g'
|
|
v -stats test .
|