Skip to content

Commit

Permalink
Merge pull request #245 from ocaisa/main
Browse files Browse the repository at this point in the history
Add information on how to use EESSI in CI
  • Loading branch information
Neves-P authored Sep 18, 2024
2 parents da6cd14 + 943ac84 commit 5c929b2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ For users:
* [Access](getting_access/is_eessi_accessible.md), [initialize](using_eessi/setting_up_environment.md) and [use](using_eessi/basic_commands.md) EESSI
* [Overview of software](available_software/overview.md)
* [How to run EESSI test suite](test-suite/index.md)
* [How to use EESSI in CI](using_eessi/eessi_in_ci.md)
- [GitHub Actions](using_eessi/eessi_in_ci.md/#the-eessi-github-action)
- [GitLab CI/CD](using_eessi/eessi_in_ci.md/#the-eessi-gitlab-cicd-component)
* [Get help or report issue](support.md)

For system administrators:
Expand Down
50 changes: 50 additions & 0 deletions docs/using_eessi/eessi_in_ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Leveraging EESSI for Continuous Integration

EESSI is already available as both a GitHub Action and a GitLab CI/CD component, which means you can easily integrate
it if you use continuous integration within those ecosystems.

!!! note

Both of these EESSI CI tools support the use of [`direnv`](https://direnv.net/) to allow you to store your desired
environment within a `.envrc` file within your repository. See the documentation of the individual tools for
detailed usage.

## The EESSI GitHub Action

The EESSI GitHub Action can be found on the [GitHub Marketplace](https://github.com/marketplace),
at [https://github.com/marketplace/actions/eessi](https://github.com/marketplace/actions/eessi) .
at [https://github.com/marketplace/actions/eessi](https://github.com/marketplace/actions/eessi).
Below is a minimal example of how to leverage the action, for detailed usage please refer to the official action
documentation.

``` { .yaml .copy }
name: Minimal usage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: eessi/github-action-eessi@v3
- name: Test EESSI
run: |
module avail
shell: bash
```

## The EESSI GitLab CI/CD component

The EESSI GitLab CI/CD component can be found in the [GitLab CI/CD Catalog](https://gitlab.com/explore/catalog), at
[https://gitlab.com/explore/catalog/eessi/gitlab-eessi](https://gitlab.com/explore/catalog/eessi/gitlab-eessi).
Below is a minimal example of how to leverage the component, for detailed usage please refer to the official
component documentation.

``` { .yaml .copy }
include:
- component: $CI_SERVER_FQDN/eessi/gitlab-eessi/eessi@1.0.5
build:
stage: build
script:
- module spider GROMACS
```

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ nav:
- Set up environment: using_eessi/setting_up_environment.md
- Basic commands: using_eessi/basic_commands.md
- Demos: using_eessi/eessi_demos.md
- EESSI in CI: using_eessi/eessi_in_ci.md
- Advanced usage:
- Setting up your Stratum: filesystem_layer/stratum1.md
- Building software with EESSI: using_eessi/building_on_eessi.md
Expand Down

0 comments on commit 5c929b2

Please sign in to comment.