Skip to content

Commit

Permalink
Merge pull request #94 from matrix-org/hs/integration-testing
Browse files Browse the repository at this point in the history
Integration testing: Test against an actual ircd
  • Loading branch information
Half-Shot committed Sep 22, 2022
2 parents 224ba12 + f127bb0 commit 5feb096
Show file tree
Hide file tree
Showing 8 changed files with 4,208 additions and 402 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,24 @@ jobs:
node-version: ${{ matrix.node_version }}
- run: npm i
- run: npm run test
integration:
runs-on: ubuntu-latest
services:
ircd:
image: inspircd/inspircd-docker
env:
# Don't check domain against blacklists
INSP_ENABLE_DNSBL: no
ports:
- 6667:6667
strategy:
matrix:
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 }}
- run: npm i
- run: npm run test:integration
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
Loading

0 comments on commit 5feb096

Please sign in to comment.