Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

525 GGIRCS nightly build #536

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/actions/dev-env-setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Set up CIF dev environment"
description: "Sets up asdf, perl, and configures the cache"
runs:
using: composite
steps:
- name: asdf setup
uses: asdf-vm/actions/setup@v1
- uses: shogo82148/actions-setup-perl@v1
- name: install pg perl library
run: sudo apt-get install -y libpq-dev libdbd-pg-perl
shell: bash
- name: set perl env variables
shell: bash
run: | # pragma: allowlist secret
echo "PERL5LIB=/home/runner/perl5/lib/perl5" >> $GITHUB_ENV
echo "PERL_LOCAL_LIB_ROOT=/home/runner/perl5" >> $GITHUB_ENV
echo "PERL_MB_OPT=--install_base '/home/runner/perl5'" >> $GITHUB_ENV
echo "PERL_MM_OPT=INSTALL_BASE=/home/runner/perl5" >> $GITHUB_ENV
echo "/home/runner/perl5/bin" >> $GITHUB_PATH
echo "CURRENT_PERL_VERSION=$(perl -e 'print "$^V\n"')" >> $GITHUB_ENV
- uses: actions/cache@v3
id: asdf-cache
with:
path: |
~/.asdf
key: ${{ runner.os }}-asdf-cache-${{ hashFiles('.tool-versions') }}
- uses: actions/cache@v3
id: perl-cache
with:
path: |
~/perl5
key: ${{ runner.os }}-perl-cache-${{ env.CURRENT_PERL_VERSION }}-${{ hashFiles('cpanfile') }}
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
~/.cache/yarn
~/.cache/Cypress
./app/node_modules
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('app/yarn.lock') }}-v2
- name: update submodules
run: git submodule update --init
shell: bash
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches-ignore:
- main
- master
schedule:
- cron: "45 0 * * *"

jobs:
ghg-issuer-build:
Expand All @@ -19,3 +21,12 @@ jobs:
image_tag: latest,${{ github.sha }}
dockerfile: ghg-credentials-issuer/Dockerfile
context: ghg-credentials-issuer
yarn-audit:
needs: install-dev-tools
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: dev env setup
uses: ./.github/actions/dev-env-setup
- run: yarn audit-deps
working-directory: ./app