From b5db0fa972f8746d5a6e62cf70082d31577c59f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:18:22 +0100 Subject: [PATCH 1/6] Fix variable name typo --- build/add-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/add-list.js b/build/add-list.js index 2ebc55d..ae763ae 100644 --- a/build/add-list.js +++ b/build/add-list.js @@ -2,10 +2,10 @@ const {join} = require('path') const {pick} = require('lodash') const readCsv = require('./read-csv') -const IGNORE_LIST_PATH = join(__dirname, '..', 'add-list.csv') +const ADD_LIST_PATH = join(__dirname, '..', 'add-list.csv') async function loadAddList() { - const rows = await readCsv(IGNORE_LIST_PATH) + const rows = await readCsv(ADD_LIST_PATH) return rows.map(row => ({ ...pick(row, 'codePostal', 'codeCommune', 'libelleAcheminement', 'nomCommune'), codeVoie: 'XXXX' From 62327198a48ad9aacb339772c56a6f75d487b8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:19:24 +0100 Subject: [PATCH 2/6] Remove CircleCI config --- circle.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 circle.yml diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 2064a2c..0000000 --- a/circle.yml +++ /dev/null @@ -1,17 +0,0 @@ -machine: - node: - version: "8" - environment: - PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" - -dependencies: - override: - - yarn - cache_directories: - - ~/.cache/yarn - -test: - override: - - yarn build - - yarn lint - - yarn test From b1bda3c9f29aefb4c3e10e09265747fc260b9aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:19:34 +0100 Subject: [PATCH 3/6] Add GitHub Actions config --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..893fcf7 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + - run: yarn + - run: yarn lint + - run: yarn test + - run: yarn build From b416d4833a424b4f79502702a3ab132a33759373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:20:38 +0100 Subject: [PATCH 4/6] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index dc60e77..51de052 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Etalab +Copyright (c) 2021 Base Adresse Nationale (IGN, DINUM, ANCT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 6c3e596d36389155d350dc639fdc08daa546f825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:21:49 +0100 Subject: [PATCH 5/6] Update package.json meta --- package.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index df17743..75595b4 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,7 @@ "name": "codes-postaux", "version": "3.4.0", "description": "French postal codes API for Node.js", - "repository": { - "type": "git", - "url": "https://github.com/etalab/codes-postaux.git" - }, + "repository": "https://github.com/BaseAdresseNationale/codes-postaux", "keywords": [ "france", "codes postaux", @@ -15,10 +12,7 @@ ], "author": "Jérôme Desboeufs ", "license": "MIT", - "bugs": { - "url": "https://github.com/etalab/codes-postaux/issues" - }, - "homepage": "https://github.com/etalab/codes-postaux", + "homepage": "https://github.com/BaseAdresseNationale/codes-postaux", "files": [ "codes-postaux.json", "codes-postaux-full.json", From 8c853940063508ce66e4858ff65c4d713f557daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Desboeufs?= Date: Wed, 22 Dec 2021 14:23:04 +0100 Subject: [PATCH 6/6] Update workflow --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 893fcf7..0d8bbeb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -25,5 +25,5 @@ jobs: cache: 'yarn' - run: yarn - run: yarn lint - - run: yarn test - run: yarn build + - run: yarn test