Load resource with tag/revision if it exists in self #3378
Workflow file for this run
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: Pre-merge Review | |
on: [pull_request] | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- name: Prune containers | |
run: | | |
docker system prune -af | |
- name: install dependencies π | |
run: | | |
yarn install --frozen-lockfile # optional, --immutable | |
- name: linting β¨ | |
run: | | |
yarn lint | |
- name: style check π | |
run: | | |
yarn style | |
- name: running test π«π¬ | |
run: | | |
yarn test --coverage src | |
- name: upload coverage to Codecov π | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: build fusion docker image | |
run: | | |
docker build . --tag=nexus-web:fresh | |
- name: Start services | |
run: docker compose -f ci/docker-compose.yml up -d && sleep 60 | |
- name: Copy nexus-web into Cypress container | |
# avoids permission issue where cypress writes screenshots to host with root as user | |
# which we can't then delete easily | |
run: docker cp ./. cypress:/e2e | |
# Uncomment for now in order to create the release | |
# - name: e2e tests | |
# run: >- | |
# echo | timeout --verbose 120m docker exec | |
# -e 'DEBUG=cypress:launcher:browsers' | |
# -t | |
# cypress | |
# cypress run | |
# --config-file cypress.config.ts | |
# --browser chrome | |
# --headless | |
# --record | |
# --key ${{ secrets.CYPRESS_RECORD_KEY }} | |
- name: Cleanup Docker Containers | |
if: ${{ always() }} | |
run: docker compose -f ci/docker-compose.yml down --rmi "local" --volumes |