Skip to content

Merge pull request #936 from sungam3r/patch-1 #995

Merge pull request #936 from sungam3r/patch-1

Merge pull request #936 from sungam3r/patch-1 #995

Workflow file for this run

name: Run
on: [push, pull_request]
jobs:
test-run:
name: Dependabot ${{ matrix.package_manager }}
runs-on: ubuntu-latest
strategy:
matrix:
package_manager: [bundler]
steps:
- uses: actions/checkout@v3
- name: Prepare environment variables
run: echo "IMAGE_NAME=dependabot/dependabot-script" >> $GITHUB_ENV
- name: Build Dockerfile
run: docker build -t "$IMAGE_NAME" -f Dockerfile .
- name: Run ${{ matrix.package_manager }} tests
run: |
docker run --rm \
--env "GITHUB_ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}" \
--env "PROJECT_PATH=${{ github.repository }}" \
--env "PACKAGE_MANAGER=${{ matrix.package_manager }}" \
"$IMAGE_NAME"