diff --git a/.github/workflows/pre-test.yml b/.github/workflows/pre-test.yml new file mode 100644 index 0000000..f0891cd --- /dev/null +++ b/.github/workflows/pre-test.yml @@ -0,0 +1,23 @@ +# This workflow will run tests using Jest +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: NPM Package Test + +on: + push: + branches: + - test + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm install + - run: npm test + env: + ELEVENLABS_API_KEY: ${{ secrets.ELEVENLABS_API_KEY }} + ELEVENLABS_VOICE_ID: ${{ secrets.ELEVENLABS_VOICE_ID }} \ No newline at end of file