speed search improvements and other small fixes #149
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: Deploy and test dev | |
on: | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
deploy-dev: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" | |
- name: Checkout UI | |
uses: actions/checkout@v2 | |
- name: Build UI and publish timestamped Docker image | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: hsldevcom/transitlog-ui | |
username: ${{ secrets.TRANSITLOG_DOCKERHUB_USER }} | |
password: ${{ secrets.TRANSITLOG_DOCKERHUB_TOKEN }} | |
buildargs: BUILD_ENV=dev | |
tags: date-${{ steps.date.outputs.date }} | |
- name: Build UI and publish Docker image | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: hsldevcom/transitlog-ui | |
username: ${{ secrets.TRANSITLOG_DOCKERHUB_USER }} | |
password: ${{ secrets.TRANSITLOG_DOCKERHUB_TOKEN }} | |
buildargs: BUILD_ENV=dev | |
tags: dev | |
- name: Checkout server | |
uses: actions/checkout@v2 | |
with: | |
repository: HSLdevcom/transitlog-server | |
ref: dev | |
- name: Build Server and publish Docker image | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: hsldevcom/transitlog-server | |
username: ${{ secrets.TRANSITLOG_DOCKERHUB_USER }} | |
password: ${{ secrets.TRANSITLOG_DOCKERHUB_TOKEN }} | |
tags: dev | |
- name: Build Server and publish timestamped Docker image | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: hsldevcom/transitlog-server | |
username: ${{ secrets.TRANSITLOG_DOCKERHUB_USER }} | |
password: ${{ secrets.TRANSITLOG_DOCKERHUB_TOKEN }} | |
tags: date-${{ steps.date.outputs.date }} | |
# test-dev: | |
# needs: deploy-dev | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/setup-node@v2 | |
# with: | |
# node-version: "14" | |
# - uses: actions/checkout@v2 | |
# with: | |
# ref: dev | |
# - name: Sleep for 5 minutes | |
# uses: jakejarvis/wait-action@master | |
# with: | |
# time: "5m" | |
# - name: Cypress tests | |
# uses: cypress-io/github-action@v2 | |
# with: | |
# node-version: "14" | |
# env: | |
# CYPRESS_BASE_URL: https://dev.reittiloki.hsldev.com | |
# CYPRESS_CLIENT_ID: ${{ secrets.CYPRESS_CLIENT_ID }} | |
# CYPRESS_CLIENT_SECRET: ${{ secrets.CYPRESS_CLIENT_SECRET }} | |
# CYPRESS_HSL_TESTING_HSLID_USERNAME: ${{ secrets.CYPRESS_HSL_TESTING_HSLID_USERNAME }} | |
# CYPRESS_HSL_TESTING_HSLID_PASSWORD: ${{ secrets.CYPRESS_HSL_TESTING_HSLID_PASSWORD }} | |
# - name: Upload screenshot artifacts | |
# uses: actions/upload-artifact@v1 | |
# if: failure() | |
# with: | |
# name: cypress-screenshots | |
# path: cypress/screenshots | |
# - name: Upload video artifacts | |
# uses: actions/upload-artifact@v1 | |
# if: failure() | |
# with: | |
# name: cypress-videos | |
# path: cypress/videos | |
# - name: Notify of tests | |
# uses: 8398a7/action-slack@v2 | |
# if: failure() | |
# with: | |
# status: ${{ job.status }} | |
# text: Reittiloki DEV E2E test status | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |