Skip to content

Commit

Permalink
chore: General cleanup (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chapabu authored Aug 26, 2022
1 parent fc17314 commit 7a2ed63
Show file tree
Hide file tree
Showing 39 changed files with 23,501 additions and 16,149 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ updates:
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
# Setting this to 0 means we only get security updates, and not all
# major/minor/patch releases.
open-pull-requests-limit: 0
19 changes: 19 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull Request

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
conventional:
name: Validate PR title

runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

75 changes: 65 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,81 @@
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main

on: [push]

jobs:
lint:
runs-on: 'ubuntu-latest'

strategy:
matrix:
node: [14, 16, 18]

name: Lint (Node ${{ matrix.node }})

steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- run: npm -g install npm
if: matrix.node == 14
- run: npm ci
- run: npm run stylelint
- run: npm run eslint

test:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [10, 12, 14, 16]
os: [ubuntu-latest, macos-latest]
# No point testing on Node 18 as Webpack 4 will always fail with it due
# to OpenSSL updates. We'll need to handle this before Node 18 hits LTS.
node: [14, 16, 18]

name: Test (Node ${{ matrix.node }}, ${{ matrix.os }})

steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- run: npm -g install npm
if: matrix.node == 14
- run: npm ci
- run: npm run bootstrap
- run: npm test
env:
CI: true

build-examples:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# No point testing on Node 18 as Webpack 4 will always fail with it due
# to OpenSSL updates. We'll need to handle this before Node 18 hits LTS.
node: [14, 16, 18]

name: Build examples (Node ${{ matrix.node }}, ${{ matrix.os }})

needs:
- test
- lint

steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- run: npm -g install npm
if: matrix.node == 14
- run: npm ci
- run: npm run build
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dist
/fractal.js
.idea/
.eslintcache
.turbo
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion examples/nunjucks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@frctl/nunjucks": "^2.0.15"
},
"devDependencies": {
"@frctl/adapter-tests": "^0.1.0",
"@frctl/adapter-tests": "^0.2.0",
"node-fetch": "^2.6.1"
}
}
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
module.exports = {
testEnvironment: 'node',
setupFilesAfterEnv: ['./tests/setup.js'],
testMatch: ['<rootDir>/**/*.spec.js'],
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
};
10 changes: 0 additions & 10 deletions lerna.json

This file was deleted.

Loading

0 comments on commit 7a2ed63

Please sign in to comment.