Skip to content

Commit

Permalink
Merge branch 'master' into fix-cp-75116
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs authored Jan 7, 2022
2 parents fb6e788 + 8c85394 commit 7eb0f3c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 28 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -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 build
- run: yarn test
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions build/add-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
17 changes: 0 additions & 17 deletions circle.yml

This file was deleted.

10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -15,10 +12,7 @@
],
"author": "Jérôme Desboeufs <[email protected]>",
"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",
Expand Down

0 comments on commit 7eb0f3c

Please sign in to comment.