-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Bump dependencies by "Check updates #6" * Bump snyk * Fix typos in README Co-authored-by: fabasoad <[email protected]> Co-authored-by: fabasoad <[email protected]>
- Loading branch information
1 parent
0ad4cff
commit 90d2e19
Showing
11 changed files
with
719 additions
and
602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,28 @@ | ||
--- | ||
name: CI (latest) | ||
name: Functional Tests | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
branches: | ||
- main | ||
- 'bugfix/**' | ||
- 'feature/**' | ||
|
||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
jobs: | ||
unit_tests: | ||
name: Unit tests | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Cache node_modules | ||
id: yarn-cache | ||
uses: actions/[email protected] | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Compile | ||
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }} | ||
run: yarn install | ||
- name: Lint | ||
run: yarn run lint | ||
- name: Security tests | ||
run: | | ||
yarn run security:auth ${{ secrets.SNYK_API_TOKEN }} | ||
yarn run security:test | ||
- name: Unit tests | ||
run: yarn run test | ||
functional_tests: | ||
name: Functional tests | ||
name: Translate | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
source: ['Performance'] | ||
fail-fast: false | ||
steps: | ||
- uses: fabasoad/translation-action@main | ||
- uses: actions/[email protected] | ||
- uses: ./ | ||
id: linguatools | ||
with: | ||
provider: linguatools | ||
|
@@ -57,7 +33,7 @@ jobs: | |
echo "'${{ matrix.source }}' has been translated to '${{ steps.linguatools.outputs.text }}'" | ||
[[ "${{ steps.linguatools.outputs.text }}" == "Leistung" ]] || exit 1; | ||
shell: bash | ||
- uses: fabasoad/translation-action@main | ||
- uses: ./ | ||
id: mymemory_free | ||
with: | ||
provider: mymemory | ||
|
@@ -68,7 +44,7 @@ jobs: | |
echo "'${{ matrix.source }}' has been translated to '${{ steps.mymemory_free.outputs.text }}'" | ||
[[ "${{ steps.mymemory_free.outputs.text }}" == "Live performance" ]] || exit 1; | ||
shell: bash | ||
- uses: fabasoad/translation-action@main | ||
- uses: ./ | ||
id: mymemory_registered | ||
with: | ||
provider: mymemory | ||
|
@@ -80,7 +56,7 @@ jobs: | |
echo "'${{ matrix.source }}' has been translated to '${{ steps.mymemory_registered.outputs.text }}'" | ||
[[ "${{ steps.mymemory_registered.outputs.text }}" == "Elevate" ]] || exit 1; | ||
shell: bash | ||
- uses: fabasoad/translation-action@main | ||
- uses: ./ | ||
id: funtranslations | ||
with: | ||
provider: funtranslations | ||
|
18 changes: 15 additions & 3 deletions
18
.github/workflows/codeql.yml → .github/workflows/security-tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
--- | ||
name: CodeQL | ||
name: Security Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'bugfix/**' | ||
- 'feature/**' | ||
schedule: | ||
- cron: '25 2 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
snyk_tests: | ||
name: Snyk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
- uses: snyk/actions/node@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }} | ||
codeql_tests: | ||
name: CodeQL | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'bugfix/**' | ||
- 'feature/**' | ||
|
||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
jobs: | ||
unit_tests: | ||
name: Lint and Test | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Cache node_modules | ||
id: cache | ||
uses: actions/[email protected] | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Compile | ||
if: ${{ steps.cache.outputs.cache-hit != 'true' }} | ||
run: yarn install | ||
- name: Lint | ||
run: yarn run lint | ||
- name: Unit tests | ||
run: yarn test | ||
if: github.ref != 'refs/heads/main' | ||
- name: Unit tests with coverage | ||
uses: paambaati/[email protected] | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: yarn test | ||
debug: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
_ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.