Skip to content

Commit

Permalink
Bump node version to 16 in gh-workflow & fix tests (#188)
Browse files Browse the repository at this point in the history
* bump node version to 16 in gh-actions

* change run task to yarn install instead of workspace install

* Ignore tracking events on testing

---------

Co-authored-by: Carlos Sánchez <[email protected]>
  • Loading branch information
technophile-04 and carletex authored May 8, 2023
1 parent ed2317f commit 2ce47da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,5 +26,5 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn workspace backend install
- run: yarn install
- run: yarn test:backend
2 changes: 2 additions & 0 deletions packages/backend/services/plausible.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const axios = require("axios");
const PLAUSIBLE_EVENT_ENDPOINT = "https://plausible.io/api/event";

const trackPlausibleEvent = async (eventName, props, request) => {
if (typeof jest !== "undefined") return;

const payload = {
domain: "speedrunethereum.com",
name: eventName,
Expand Down

0 comments on commit 2ce47da

Please sign in to comment.