Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
80 changes: 80 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: CI

on: push

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 14
- run: yarn
- run: yarn run lint
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 14
- run: yarn
- run: yarn run test:coverage
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: ubuntu-20.04
needs: [lint, test]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 14
- run: yarn --pure-lockfile
- run: yarn run build
deploy:
runs-on: ubuntu-20.04
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Git Identity
run: |
git config --global user.name 'Scaleway Bot'
git config --global user.email 'github@scaleway.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 14
- run: yarn --pure-lockfile
- run: yarn run build
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn run lerna publish -y --create-release github --ignore-scripts
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/pull_request_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

name: Pull Request
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
check-title:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Use Node.js
uses: actions/setup-node@v2.1.4
with:
node-version: 14
- run: yarn
- run: echo '${{ github.event.pull_request.title }}' | yarn run commitlint
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scaleway-lib

scaleway-lib is a set of NPM packgages used at Scaleway. These libraries are available on our [private NPM registry](https://***REMOVED***).
scaleway-lib is a set of NPM packages used at Scaleway.

---

Expand Down Expand Up @@ -28,14 +28,13 @@ scaleway-lib is a set of NPM packgages used at Scaleway. These libraries are ava
- [`@scaleway/eslint-config-react`](./packages/eslint-config-react/README.md): A shared eslint react opiniated configuration
- [`@scaleway/random-name`](./packages/random-name/README.md): A tiny utility to generate random names
- [`@scaleway/regex`](./packages/regex/README.md): usefull regex named
- [`@scaleway/didiff-lib`](./packages/didiff-lib/README.md): diffing-s3-compatible lib for visual testing

## Development

### Locally

```bash
$ git clone git@***REMOVED***/scaleway-lib.git
$ git clone git@github.com:scaleway/scaleway-lib.git
$ cd scaleway-lib
$ yarn
$ # ... do your changes ...
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"conventionalCommits": true
},
"version": {
"message": "chore(release): publish [skip-ci]"
"message": "chore(release): publish"
}
}
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
},
"jest": {
"collectCoverageFrom": [
"packages/*/src/*.{js,jsx}",
"!packages/didiff-lib/capture/screenshot.js"
"packages/*/src/*.{js,jsx}"
],
"coverageReporters": [
"text",
Expand Down
3 changes: 3 additions & 0 deletions packages/countries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.1",
"description": "A package containing ISO 3166 and ISO 3166-2 codes",
"main": "./countries.json",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/scaleway/scaleway-lib",
Expand Down
54 changes: 0 additions & 54 deletions packages/didiff-lib/CHANGELOG.md

This file was deleted.

68 changes: 0 additions & 68 deletions packages/didiff-lib/README.md

This file was deleted.

Binary file removed packages/didiff-lib/logo.png
Binary file not shown.
30 changes: 0 additions & 30 deletions packages/didiff-lib/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/didiff-lib/src/__mocks__/lookpath.js

This file was deleted.

26 changes: 0 additions & 26 deletions packages/didiff-lib/src/__tests__/failedCapture.js

This file was deleted.

Loading