Skip to content

Update pull_request.yml #36

Update pull_request.yml

Update pull_request.yml #36

Workflow file for this run

name: Pull Request
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Config Changes not allowed
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: .*\.toml
- name: Test Changes not allowed
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: tests/*
- name: Format
run: cargo fmt --verbose
- name: Lint
run: cargo clippy --verbose
- name: Build
run: cargo build --verbose
- name: Run Unit Tests
run: cargo test --verbose
- name: Run Stage tests
uses: ruby/setup-ruby
with:

Check failure on line 34 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
ruby-version: '3.1' # Not needed with a .ruby-version file
- run: bundle install
- run: bundle exec ruby run_tests.rb
- name: Congratulations
uses: actions/github-script@v7
with:
script: |
// Get a list of all issues created by the PR opener
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Felicitaciones! Completaste el nivel 💪🏼`
})