Skip to content

Commit

Permalink
added integration tests to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brokoli777 committed Aug 4, 2024
1 parent 1ea780c commit 7a3c2c7
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,34 @@ jobs:
# 2. Use `install-ci-test` to do it in a single command, see https://docs.npmjs.com/cli/v8/commands/npm-install-ci-test
# run: npm install-ci-test
run: npm install-ci-test

integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install node dependencies
# NOTE: we need to install dev dependencies too vs. production only for hurl
run: npm install
- name: Build Containers
run: docker compose up -d
- name: Setup Local AWS Resources
# NOTE: this file needs to be made executable *before* you check into git:
# $ chmod +x ./scripts/local-aws-setup.sh
run: ./scripts/local-aws-setup.sh
- name: Run Hurl Tests
run: npm run test:integration

docker-hub:
name: Build and Push to Docker Hub
# Don't bother running this job unless the other three all pass
needs: [lint, dockerfile-lint, unit-tests]
needs: [lint, dockerfile-lint, unit-tests, integration-tests]
runs-on: ubuntu-latest
steps:
# Set up buildx for optimal Docker Builds, see:
Expand Down Expand Up @@ -111,3 +134,5 @@ jobs:
push: true
# Use 3 tags :sha-sha-7d821bd14e0d6c381dc57a5369ae1a3a9220664f, :main, and :latest
tags: ${{ env.DOCKERHUB_REPO }}:${{ env.SHA_TAG }}, ${{ env.DOCKERHUB_REPO }}:main, ${{ env.DOCKERHUB_REPO }}:latest


0 comments on commit 7a3c2c7

Please sign in to comment.