2021-06-23 16:38:59 +00:00
|
|
|
name: Translations Validation
|
2021-06-22 23:46:27 +00:00
|
|
|
on:
|
2021-07-08 18:58:04 +00:00
|
|
|
workflow_dispatch:
|
2021-06-22 23:46:27 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "translations/**"
|
|
|
|
env:
|
|
|
|
GOPROXY: https://proxy.golang.org
|
2023-10-12 16:09:56 +00:00
|
|
|
GO_VERSION: '1.21.3'
|
2022-03-12 00:25:30 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-06-22 23:46:27 +00:00
|
|
|
jobs:
|
|
|
|
unit_test:
|
2021-06-23 16:38:59 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2021-06-22 23:46:27 +00:00
|
|
|
steps:
|
2023-09-25 17:18:30 +00:00
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
2023-08-14 16:03:49 +00:00
|
|
|
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
2021-06-22 23:46:27 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{env.GO_VERSION}}
|
2022-10-29 15:22:24 +00:00
|
|
|
cache-dependency-path: ./go.sum
|
2021-06-22 23:46:27 +00:00
|
|
|
- name: Install libvirt
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libvirt-dev
|
|
|
|
- name: Download Dependencies
|
|
|
|
run: go mod download
|
|
|
|
- name: Unit Test
|
|
|
|
env:
|
|
|
|
TESTSUITE: unittest
|
|
|
|
run: make test
|
|
|
|
continue-on-error: false
|