Git Product home page Git Product logo

action-artefacts-ci's Introduction

How to use it:

1. Add the Action to your Workflow

In your GitHub workflow file (usually located in .github/workflows/), you can add the artefacts-ci action to a job. Here's an example:

jobs:
  artefacts-ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: art-e-fact/action-artefacts-ci@main
        with:
          artefacts-api-key: ${{ secrets.ARTEFACTS_API_KEY }}
          job-name: basic_tests

In this example, replace basic_tests with the name of your job that you already have in your artefacts.yaml file.

Optionally, you can add a ros test job before the artefacts-ci to ensure everything is working before running the platform job:

jobs:
  ros2-test:
    runs-on: ubuntu-latest
    env:
      ROS_DISTRO: humble
    steps:
        - uses: actions/checkout@v3
        - uses: ros-tooling/[email protected]
          with:
            required-ros-distributions: ${{ env.ROS_DISTRO }}
        - uses: ros-tooling/[email protected]
          with:
            import-token: ${{ secrets.GITHUB_TOKEN }}
            package-name: dolly_tests
            target-ros2-distro: ${{ env.ROS_DISTRO }}
            skip-tests: true

  artefacts-ci:
    needs: ros2-test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: art-e-fact/action-artefacts-ci@main
        with:
          artefacts-api-key: ${{ secrets.ARTEFACTS_API_KEY }}
          job-name: basic_tests
          # If you prefer a custom name in the platform instead of the commit.
          # description: "Custom name"

2. Set up Secrets

The artefacts-api-key input requires a secret. In your GitHub repository, go to "Settings" -> "Secrets" and add a new secret named ARTEFACTS_API_KEY with your Artefacts API key as the value.

3. Run the Workflow

Once you've set up the workflow and the secret, you can run the workflow by making a commit to the branch where the workflow file is located.

Badge

You can also add a badge to your README to show the status of your last platform job. Replace dolly-demo with the name of your project and job name:

artefacts_ci

[![artefacts_ci](https://app.artefacts.com/api/dolly-infra/badges/basic_tests.png)](https://app.artefacts.com/dolly-demo/tests)

action-artefacts-ci's People

Contributors

deku-95 avatar fabid avatar

Watchers

Eric Platon avatar Liam Svanåsbakken Crouch avatar

action-artefacts-ci's Issues

Update readme

Needed additional info about waiting for job result and check old variables names.

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.