Skip to content

Commit

Permalink
feat(ci-runner): run ci on schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Nov 24, 2020
1 parent 525ab3e commit a51bebe
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 1,901 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ module.exports = {
'react/prop-types': ['off'], // Covered by React.FC
},
},
{
files: ['ci/*'],
rules: {
'node/no-unpublished-require': 'off',
},
},
{
files: ['*config*', 'test/**/*.ts'],
rules: {
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/lint-remote-javascript.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint remote javascript

on: [workflow_dispatch]
on:
schedule:
# Every thursday at 00:00
- cron: '0 0 * * THU'
workflow_dispatch:

jobs:
lint:
Expand All @@ -14,9 +18,9 @@ jobs:
node-version: 12.11
- run: yarn install
- run: yarn build
- run: yarn install
working-directory: ./configs
- run: yarn install --no-lockfile
working-directory: ./ci
- run: yarn lint:javascript
working-directory: ./configs
working-directory: ./ci
env:
CI: true
12 changes: 8 additions & 4 deletions .github/workflows/lint-remote-typescript.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Lint remote typescript

on: [workflow_dispatch]
on:
schedule:
# Every thursday at 00:00
- cron: '0 0 * * THU'
workflow_dispatch:

jobs:
lint:
Expand All @@ -14,9 +18,9 @@ jobs:
node-version: 12.11
- run: yarn install
- run: yarn build
- run: yarn install
working-directory: ./configs
- run: yarn install --no-lockfile
working-directory: ./ci
- run: yarn lint:typescript
working-directory: ./configs
working-directory: ./ci
env:
CI: true
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
log

# Exclude all from VSCode
.vscode/**
Expand All @@ -8,4 +9,7 @@ node_modules
# Generated by app
.cache-eslint-remote-tester
eslint-remote-tester-results
dist
dist

# CI
ci/yarn.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const repositories = require('./repositories.json');
const pathIgnorePattern = require('./pathIgnorePattern');
const repositories = require('../configs/repositories.json');
const pathIgnorePattern = require('../configs/pathIgnorePattern');

module.exports = {
/** Repositories to scan */
Expand All @@ -11,7 +11,7 @@ module.exports = {
/** Optional pattern used to exclude paths */
pathIgnorePattern,

/** Rules used to filter out results */
/** Rules used to filter out results. Empty for crash results only. */
rulesUnderTesting: [],

/** Optional syntax for the result parser. Valid values are plaintext, markdown. Defaults to markdown on CLI, plaintext on CI */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const repositories = require('./repositories.json');
const pathIgnorePattern = require('./pathIgnorePattern');
const repositories = require('../configs/repositories.json');
const pathIgnorePattern = require('../configs/pathIgnorePattern');

module.exports = {
/** Repositories to scan */
Expand All @@ -11,7 +11,7 @@ module.exports = {
/** Optional pattern used to exclude paths */
pathIgnorePattern,

/** Rules used to filter out results */
/** Rules used to filter out results. Empty for crash results only. */
rulesUnderTesting: [],

/** Optional syntax for the result parser. Valid values are plaintext, markdown. Defaults to markdown on CLI, plaintext on CI */
Expand Down
File renamed without changes.

0 comments on commit a51bebe

Please sign in to comment.