Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider eda80b6c rédigé par Christian Paul's avatar Christian Paul Validation de GitHub
Parcourir les fichiers

Update yarn.lock and fix Docker builds (#825)

* Update yarn.lock
* Dockerfile: Install python3 and add git:// workaround for github.com
* CI: Apply git config to fix fetching from Github
* Upgrade matrix-appservice-bridge to v5.0.0; requires Node.js 16+
parent 7d77e6d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -11,18 +11,22 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16
# Workaround for https://github.com/matrix-org/matrix-appservice-discord/issues/803
- run: git config --global url.https://github.com/.insteadOf git://github.com/
- run: yarn
- run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [14, 16, 18]
node_version: [16, 18]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
# Workaround for https://github.com/matrix-org/matrix-appservice-discord/issues/803
- run: git config --global url.https://github.com/.insteadOf git://github.com/
- run: yarn
- run: yarn test
FROM node:16-alpine AS BUILD
COPY . /tmp/src
# install some dependencies needed for the build process
RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-dev wget git
RUN apk add --no-cache -t build-deps make gcc g++ python3 ca-certificates libc-dev wget git
# Workaround for https://github.com/matrix-org/matrix-appservice-discord/issues/803
RUN git config --global url.https://github.com/.insteadOf git://github.com/
RUN cd /tmp/src \
&& yarn
......
Minimum required Node.js version is now 16.
\ No newline at end of file
......@@ -5,7 +5,7 @@
"main": "discordas.js",
"engines": {
"npm": "please-use-yarn",
"node": "14.x - 18.x"
"node": ">=16 <=18"
},
"scripts": {
"test": "mocha -r ts-node/register test/config.ts test/test_*.ts test/**/test_*.ts",
......@@ -48,7 +48,7 @@
"escape-string-regexp": "^4.0.0",
"js-yaml": "^3.14.0",
"marked": "^1.2.2",
"matrix-appservice-bridge": "^3.1.0",
"matrix-appservice-bridge": "^5.0.0",
"matrix-discord-parser": "0.1.5",
"mime": "^2.4.6",
"node-html-parser": "^1.2.19",
......
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter