Skip to content

Commit

Permalink
Bump dependencies by "Check updates #7" (#13)
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
3 people authored Feb 20, 2021
1 parent 32f2538 commit e952994
Show file tree
Hide file tree
Showing 12 changed files with 645 additions and 484 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check updates

on:
schedule:
- cron: '0 0 1,15 * *'
- cron: '0 0 1 * *'

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
run: yarn version --patch --no-git-tag-version
- name: Create PR
if: ${{ steps.git-diff.outputs.count > 0 }}
uses: peter-evans/create-pull-request@v3.6.0
uses: peter-evans/create-pull-request@v3.8.2
env:
HUSKY: 0
with:
Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/ci-latest.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/ci-main.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/functional-tests.yml
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;
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
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/unit-tests.yml
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
2 changes: 1 addition & 1 deletion .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_
_
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"cSpell.words": [
"UNSECURE",
"appium",
"autobuild",
"briandk",
"cobc",
"codeql",
"gnucobol",
"issuehunt",
"liberapay",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Setup COBOL (GnuCOBOL)

![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-cobol-action?include_prereleases) ![CI (latest)](https://github.com/fabasoad/setup-cobol-action/workflows/CI%20(latest)/badge.svg) ![CI (main)](https://github.com/fabasoad/setup-cobol-action/workflows/CI%20(main)/badge.svg) ![CodeQL](https://github.com/fabasoad/setup-cobol-action/workflows/CodeQL/badge.svg) ![YAML Lint](https://github.com/fabasoad/setup-cobol-action/workflows/YAML%20Lint/badge.svg) ![Shell Lint](https://github.com/fabasoad/setup-cobol-action/workflows/Shell%20Lint/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/84d9008a0dc1a2c6f703/maintainability)](https://codeclimate.com/github/fabasoad/setup-cobol-action/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/84d9008a0dc1a2c6f703/test_coverage)](https://codeclimate.com/github/fabasoad/setup-cobol-action/test_coverage) [![Known Vulnerabilities](https://snyk.io/test/github/fabasoad/setup-cobol-action/badge.svg?targetFile=package.json)](https://snyk.io/test/github/fabasoad/setup-cobol-action?targetFile=package.json)
![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-cobol-action?include_prereleases) ![Unit Tests](https://github.com/fabasoad/setup-cobol-action/workflows/Unit%20Tests/badge.svg) ![Functional Tests](https://github.com/fabasoad/setup-cobol-action/workflows/Functional%20Tests/badge.svg) ![Security Tests](https://github.com/fabasoad/setup-cobol-action/workflows/Security%20Tests/badge.svg) ![YAML Lint](https://github.com/fabasoad/setup-cobol-action/workflows/YAML%20Lint/badge.svg) ![Shell Lint](https://github.com/fabasoad/setup-cobol-action/workflows/Shell%20Lint/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/84d9008a0dc1a2c6f703/maintainability)](https://codeclimate.com/github/fabasoad/setup-cobol-action/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/84d9008a0dc1a2c6f703/test_coverage)](https://codeclimate.com/github/fabasoad/setup-cobol-action/test_coverage) [![Known Vulnerabilities](https://snyk.io/test/github/fabasoad/setup-cobol-action/badge.svg?targetFile=package.json)](https://snyk.io/test/github/fabasoad/setup-cobol-action?targetFile=package.json)

This action sets up a [GnuCOBOL](https://en.wikipedia.org/wiki/COBOL) programming language. Currently supports Linux Ubuntu only.

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-cobol-action",
"version": "1.0.8",
"version": "1.0.9",
"description": "This action sets up a GnuCOBOL.",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -37,16 +37,16 @@
"devDependencies": {
"@vercel/ncc": "0.27.0",
"chai": "4.3.0",
"eslint": "7.19.0",
"eslint": "7.20.0",
"eslint-config-google": "0.14.0",
"git-branch-is": "4.0.0",
"husky": "5.0.6",
"husky": "5.0.9",
"markdownlint-cli": "0.26.0",
"mocha": "8.2.1",
"mocha": "8.3.0",
"mocha-param": "2.0.1",
"nyc": "15.1.0",
"sinon": "9.2.4",
"snyk": "1.446.0",
"snyk": "1.458.0",
"winston": "3.3.3"
},
"snyk": true
Expand Down
Loading

0 comments on commit e952994

Please sign in to comment.