build: Drop node v16 and add node v21 to test matrix. Update nsqd ver… #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
node: [18,20,21] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: "System dependencies" | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install libsnappy-dev python3 build-essential | |
- name: "Install nsq" | |
run: | | |
NSQ_DIST="nsq-1.3.0.linux-amd64.go1.21.5" | |
curl -sSL "https://bitly-downloads.s3.amazonaws.com/nsq/${NSQ_DIST}.tar.gz" \ | |
| tar -xzv --strip-components=1 | |
- run: npm install | |
- run: | | |
export PATH=bin:$PATH | |
npm test |