node.js.yml 592 B

1234567891011121314151617181920212223
  1. name: Node.js CI
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [14.x]
  13. steps:
  14. - uses: actions/checkout@v2
  15. - name: Use Node.js ${{ matrix.node-version }}
  16. uses: actions/setup-node@v1
  17. with:
  18. node-version: ${{ matrix.node-version }}
  19. - run: npm ci
  20. - run: npm run build --if-present
  21. - run: sed -i -e "s/"<Discord bot token>"/"${{secrets.DISCORD_TOKEN}}"/g" .env
  22. - run: sed -i -e "s/"!wiki "/"!test "/g" .env
  23. - run: npm test