Skip to content

Bump axios from 1.3.5 to 1.6.1 #202

Bump axios from 1.3.5 to 1.6.1

Bump axios from 1.3.5 to 1.6.1 #202

---
name: Functional Tests
on:
push:
branches:
- "main"
pull_request:
jobs:
translate:
name: ${{ matrix.provider }}
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- provider: "deepl"
lang: "en-uk"
source: "Love"
expected: "Любов"
api_key: "DEEPL_API_KEY" # pragma: allowlist secret
- provider: "google"
lang: "en-hr"
source: "Love"
expected: "Ljubav"
api_key: "N_A" # pragma: allowlist secret
- provider: "linguatools"
lang: "en-de"
source: "Love"
expected: "Love"
api_key: "N_A" # pragma: allowlist secret
- provider: "mymemory"
lang: "en|it"
source: "Love"
expected: "L'amore"
api_key: "N_A" # pragma: allowlist secret
- provider: "mymemory"
lang: "en|pt"
source: "Love"
expected: "Amor"
api_key: "MYMEMORY_API_KEY" # pragma: allowlist secret
- provider: "funtranslations"
lang: "klingon"
source: "Love"
expected: "Parmaq"
api_key: "N_A" # pragma: allowlist secret
steps:
- uses: actions/checkout@v4
- uses: ./
id: result
with:
provider: ${{ matrix.provider }}
lang: ${{ matrix.lang }}
source: ${{ matrix.source }}
api_key: "${{ secrets[matrix.api_key] }}"
- name: Validate ${{ matrix.provider }} translation result
run: |
echo "'${{ matrix.source }}' has been translated to '${{ steps.result.outputs.text }}'"
[ "${{ steps.result.outputs.text }}" = "${{ matrix.expected }}" ] || exit 1;
shell: sh