Bump golang.org/x/crypto from 0.9.0 to 0.17.0 in /src #209
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: Run Unittests & Integration Tests | |
on: | |
push: | |
branches: | |
- '**' #every branch | |
pull_request: | |
branches: | |
- '**' #every branch | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ github.ref }} | |
- name: Install dependencies | |
run: | | |
echo "Updating docker-compose to version 1.24.1" | |
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /tmp/docker-compose | |
sudo rm /usr/local/bin/docker-compose | |
sudo mv /tmp/docker-compose /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
echo "Downloading existing images (for caching)" | |
docker pull bbernhard/imagemonkey-api:latest | |
docker pull bbernhard/imagemonkey-db:latest | |
docker pull bbernhard/imagemonkey-testing:latest | |
api-test: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ github.ref }} | |
- name: Run API tests | |
env: | |
ENV_FILE_LOCATION: ../env_api_tests.ci | |
run: | | |
echo "Cloning imagemonkey-labels" | |
git clone https://github.com/bbernhard/imagemonkey-labels.git wordlists | |
rm -rf wordlists/.github | |
echo "Creating avatars directory" | |
mkdir -p avatars | |
cp img/default.png avatars/default.png | |
echo "Creating data directory" | |
mkdir -p data/donations | |
mkdir -p data/quarantine | |
mkdir -p data/unverified_donations | |
echo "Preparing env file for github actions job" | |
cp env/env.ci env/env_api_tests.ci | |
echo "TEST_MODE=only-api" >> env/env_api_tests.ci | |
docker-compose -f env/docker/docker-compose.ci.yml up --abort-on-container-exit --exit-code-from testing | |
ui-test: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ github.ref }} | |
- name: Run UI tests | |
env: | |
ENV_FILE_LOCATION: ../env_ui_tests.ci | |
run: | | |
echo "Cloning imagemonkey-labels" | |
git clone https://github.com/bbernhard/imagemonkey-labels.git wordlists | |
rm -rf wordlists/.github | |
echo "Creating avatars directory" | |
mkdir -p avatars | |
cp img/default.png avatars/default.png | |
echo "Creating data directory" | |
mkdir -p data/donations | |
mkdir -p data/quarantine | |
mkdir -p data/unverified_donations | |
mkdir -p test_output | |
echo "Preparing env file for github actions job" | |
cp env/env.ci env/env_ui_tests.ci | |
echo "TEST_MODE=only-ui" >> env/env_ui_tests.ci | |
docker-compose -f env/docker/docker-compose.ci.yml up --abort-on-container-exit --exit-code-from testing | |
- name: Upload cypress screenshots and videos of failed tests | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: cypress-screenshots-and-videos-of-failed-tests | |
path: test_output/* | |
retention-days: 5 | |
unit-test: | |
runs-on: ubuntu-latest | |
needs: setup | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ github.ref }} | |
- name: Run unittests | |
env: | |
ENV_FILE_LOCATION: ../env_unit_tests.ci | |
run: | | |
echo "Cloning imagemonkey-labels" | |
git clone https://github.com/bbernhard/imagemonkey-labels.git wordlists | |
rm -rf wordlists/.github | |
echo "Creating avatars directory" | |
mkdir -p avatars | |
cp img/default.png avatars/default.png | |
echo "Creating data directory" | |
mkdir -p data/donations | |
mkdir -p data/quarantine | |
mkdir -p data/unverified_donations | |
echo "Preparing env file for github actions job" | |
cp env/env.ci env/env_unit_tests.ci | |
echo "TEST_MODE=only-unittest" >> env/env_unit_tests.ci | |
docker-compose -f env/docker/docker-compose.ci.yml up --abort-on-container-exit --exit-code-from testing |