GithubHelp home page GithubHelp logo

silverhairs / codecrafters-test Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5 KB

Github Action to run CodeCrafters test on your repository from GitHub.

License: MIT License

ci-cd codecrafters github-actions

codecrafters-test's Introduction

CodeCrafters Test

Introduction

This GitHub Action is designed to facilitate running tests on your code when working on a challenge from CodeCrafters. It uses the CodeCrafters CLI to run tests and view test results from github.

Prerequisites

Before using this GitHub Action, ensure you have:

  • An active CodeCrafters account.
  • Basic knowledge of YAML and GitHub Actions.

Inputs

  • remote-url: The git remote URL you get when you kick start a new challenge on CodeCrafters.io. It's recommended to keep this in a secret.

Usage

Here's how to integrate the this action into your GitHub workflow:

  1. If not already present, create a workflow file (e.g. main.yml) in your .github/workflows directory.

  2. Include the "Codecrafters Test" action in your workflow file. Below is an example snippet:

    name: CodeCrafters Test
    on: [push, pull_request]
    
    jobs:
      codecrafters-test:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2
          - name: Run Codecrafters Test
            uses: silverhairs/codecrafters-test@v1
            with:
              remote-url: ${{ secrets.CODECRAFTERS_REMOTE }} # Replace with your remote URL
  3. Ensure the remote-url input is correctly set in the with section of your workflow.

  4. Save the changes to your workflow file and push them to your repository.

Contributing

Contributions to enhance this action are always welcome. Feel free to fork the repository, make your improvements, and submit a pull request.

codecrafters-test's People

Contributors

silverhairs avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.