feat(build-rust-docker): add command to test image before push #107
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
# docs: skip | |
name: Pull request on workflow repository | |
on: | |
pull_request: {} | |
jobs: | |
check-workflows: | |
runs-on: ubuntu-latest | |
steps: | |
# This can happen before checkout because we already have all the metadata | |
- name: Check pull request title | |
uses: amannn/action-semantic-pull-request@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies using yarn | |
run: yarn install --frozen-lockfile | |
- name: Run workflow repository checks | |
run: yarn ci:check | |
- name: Check commits | |
run: yarn run commitlint -f ${{ github.event.pull_request.base.sha }} -t ${{ github.event.pull_request.head.sha }} --verbose | |
- name: Run semantic-release (dry-run) | |
run: | | |
# Trick semantic-release into dry-running on the target branch | |
git update-ref refs/heads/$GITHUB_BASE_REF HEAD | |
git checkout -f $GITHUB_BASE_REF | |
unset GITHUB_ACTIONS | |
yarn release --dry-run --no-ci | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |