Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
hernangonzalez committed Nov 18, 2024
0 parents commit c4f0bf2
Show file tree
Hide file tree
Showing 32 changed files with 1,208 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Pull Request

on:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- name: Install gems
run: bundle install
- 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
run: bundle exec ruby run_tests.rb
- name: Upgrade Stage
run: bundle exec ruby upgrade_stage.rb
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: '*.toml'
- 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 💪🏼`
})
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/book/build
Gemfile.lock
Loading

0 comments on commit c4f0bf2

Please sign in to comment.