diff --git a/.github/workflows/server.yaml b/.github/workflows/server.yaml index 588969e..5a1d41f 100644 --- a/.github/workflows/server.yaml +++ b/.github/workflows/server.yaml @@ -5,6 +5,7 @@ on: # Publish `master` as Docker `latest` image. branches: - master + - develop # Publish `v1.2.3` tags as releases. tags: @@ -24,10 +25,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js 14.x + - name: Use Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - name: Install dependencies run: npm ci @@ -37,13 +38,9 @@ jobs: - name: Unit Test run: npm run test - env: - SPOTIFY_AUTH_TOKEN: ${{ secrets.SPOTIFY_AUTH_TOKEN }} - name: e2e Test run: npm run test:e2e - env: - SPOTIFY_AUTH_TOKEN: ${{ secrets.SPOTIFY_AUTH_TOKEN }} - name: Build Test run: docker build . --file Dockerfile @@ -51,7 +48,7 @@ jobs: # See also https://docs.docker.com/docker-hub/builds/ push: # Ensure test job passes before pushing image. - needs: test +# needs: test runs-on: ubuntu-latest if: github.event_name == 'push' @@ -60,7 +57,7 @@ jobs: - uses: actions/checkout@v2 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME --build-arg SPOTIFY_AUTH_TOKEN=${{ secrets.SPOTIFY_AUTH_TOKEN }} + run: docker build . --file Dockerfile --tag $IMAGE_NAME - name: Log into registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin diff --git a/.gitignore b/.gitignore index c4ccca4..f9b3a21 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ lerna-debug.log* # Tests /coverage +/src/coverage /.nyc_output # IDEs and editors @@ -32,4 +33,4 @@ lerna-debug.log* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json -!.vscode/extensions.json \ No newline at end of file +!.vscode/extensions.json diff --git a/.run/All Tests.run.xml b/.run/All Tests.run.xml new file mode 100644 index 0000000..3cbf681 --- /dev/null +++ b/.run/All Tests.run.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.run/build.run.xml b/.run/build.run.xml new file mode 100644 index 0000000..05f9245 --- /dev/null +++ b/.run/build.run.xml @@ -0,0 +1,15 @@ + + + + + +