-
-
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 #7" * Bump snyk Co-authored-by: fabasoad <[email protected]> Co-authored-by: fabasoad <[email protected]>
- Loading branch information
1 parent
32f2538
commit e952994
Showing
12 changed files
with
645 additions
and
484 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 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Functional Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'bugfix/**' | ||
- 'feature/**' | ||
|
||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
jobs: | ||
functional_tests: | ||
name: Run script | ||
timeout-minutes: 5 | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest'] | ||
version: ['3.0-rc1'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
- uses: ./ | ||
with: | ||
version: ${{ matrix.version }} | ||
- name: Validate script | ||
run: | | ||
cobc -x ./HelloWorld.cob | ||
[[ "$(./HelloWorld)" == "Hello World!" ]] || exit 1; |
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.