Skip to content

Commit

Permalink
Merge branch 'main' into ATL-3961-Cross-Platform-Verification-And-Sig…
Browse files Browse the repository at this point in the history
…ning-Test
  • Loading branch information
goncalo-frade-iohk authored Jul 24, 2023
2 parents f2826c1 + e8945df commit 307eaae
Show file tree
Hide file tree
Showing 406 changed files with 26,696 additions and 3,329 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/Deployment.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,73 @@
name: Deployment

defaults:
run:
shell: bash

concurrency:
group: '${{ github.head_ref }}${{ github.ref }}'
group: ${{ github.head_ref }}${{ github.ref }}
cancel-in-progress: true

env:
JAVA_VERSION: 11
NODEJS_VERSION: 16.17.0
ATALA_GITHUB_ACTOR: '${{ secrets.ATALA_GITHUB_ACTOR }}'
ATALA_GITHUB_TOKEN: '${{ secrets.ATALA_GITHUB_TOKEN }}'
'on':
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}

on:
workflow_dispatch: null

jobs:
deployment:
strategy:
matrix:
include:
- os: macos-latest
os-type: macos
runs-on: '${{ matrix.os }}'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
submodules: recursive

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Cache gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.konan
key: '${{ runner.os }}-gradle-${{ hashFiles(''**/*.gradle*'') }}'
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-gradle-
- name: 'Install Java ${{ env.JAVA_VERSION }}'
- name: "Install Java ${{ env.JAVA_VERSION }}"
uses: actions/setup-java@v3
with:
java-version: '${{ env.JAVA_VERSION }}'
java-version: "${{ env.JAVA_VERSION }}"
distribution: zulu
- name: 'Install NodeJS ${{ env.NODEJS_VERSION }}'

- name: "Install NodeJS ${{ env.NODEJS_VERSION }}"
if: matrix.os-type == 'linux'
uses: actions/setup-node@v3
with:
node-version: '${{ env.NODEJS_VERSION }}'
node-version: "${{ env.NODEJS_VERSION }}"

- name: Install Homebrew
if: matrix.os-type == 'macos'
run: >
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: 'Install autoconf, automake, libtool'
- name: "Install autoconf, automake, libtool"
if: matrix.os-type == 'macos'
run: |
brew install autoconf automake libtool
- name: Publish Maven artifacts to Github Packages
id: publish
run: |
Expand Down
28 changes: 10 additions & 18 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
pull_request:

jobs:

lint:
name: Lint changes
runs-on: ubuntu-latest
Expand All @@ -28,17 +27,19 @@ jobs:
APPLY_FIXES_MODE: commit
VALIDATE_ALL_CODEBASE: ${{ github.ref_name == 'main' }}
DISABLE: COPYPASTE,SPELL
DISABLE_LINTERS: REPOSITORY_CHECKOV
DISABLE_LINTERS: REPOSITORY_CHECKOV,BASH_SHELLCHECK,C_CPPLINT,CPP_CPPLINT
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0

- name: Mega-Linter
id: ml
uses: megalinter/megalinter@v6

- name: Archive production artifacts
if: success() || failure()
uses: actions/upload-artifact@v3
Expand All @@ -52,15 +53,16 @@ jobs:
strategy:
matrix:
include:
# - os: ubuntu-latest
# os-type: linux
# commented until we figure out the root cause for Gradle failing on Linux
# TODO: To be investigated
- os: ubuntu-latest
os-type: linux
- os: macos-latest
os-type: macos
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Validate Gradle Wrapper
run: pwd

- name: Checkout the repo
uses: actions/checkout@v3
with:
Expand All @@ -84,7 +86,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
distribution: "zulu"

- name: Install NodeJS ${{ env.NODEJS_VERSION }}
uses: actions/setup-node@v3
Expand All @@ -104,17 +106,7 @@ jobs:
- name: Test Kotlin code is properly formatted
run: ./gradlew ktlintCheck

- name: Build for iOS, macOS, tvOS, watchOS
if: matrix.os-type == 'macos'
run: |
./gradlew build check allTests --stacktrace
# ./gradlew clean build iosX64Test --stacktrace
# removed watchosX64Test as GitHub action gets Invalid device: Apple Watch Series 5 - 44mm
# no longer supporting them => macosX64Test tvosX64Test
# TODO: To be investigated

- name: Build for JS, Linux, Android, JVM
if: matrix.os-type == 'linux'
- name: Build Check All tests
run: |
./gradlew build check allTests --stacktrace
Expand Down
Loading

0 comments on commit 307eaae

Please sign in to comment.