Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #2883

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #2883

Workflow file for this run

name: Build
on: [pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2.0.0
- run: git fetch --prune --unshallow
- name: Install IPFS (Mac OS)
if: startsWith(matrix.os, 'macos')
run: brew install ipfs
- name: Install IPFS (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: sudo snap install ipfs
- name: Run Makefile
run: |
git describe --tags
make tmp/.version
make dist/fury
mv dist/fury.tar.gz dist/fury-$(head -n 1 tmp/.version).tar.gz
timeout-minutes: 20
- uses: actions/upload-artifact@v2
with:
name: build-dist-${{ runner.os }}
path: dist
- uses: actions/upload-artifact@v2
with:
name: compilation-logs-${{ runner.os }}
path: $HOME/.cache/fury/logs
if: failure()
unit-tests:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2.0.0
- uses: actions/download-artifact@v4.1.7
with:
name: build-dist-${{ runner.os }}
path: dist
- name: Install Fury
run: |
chmod +x dist/fury
mkdir -p "$HOME"/.local/share/fury/downloads
cp dist/fury-*.tar.gz "$HOME"/.local/share/fury/downloads
dist/fury system install
echo "$HOME/.local/share/fury/usr/active/bin" >> $GITHUB_PATH
echo "$HOME/.local/share/fury/usr/active/opt" >> $GITHUB_PATH
timeout-minutes: 10
- name: Run unit tests
run: |
fury test --disable-security-manager --output linear || touch unittests.failed
! ls -1 unittests.failed 2> /dev/null
timeout-minutes: 10
- uses: actions/upload-artifact@v2
with:
name: logs-unit-tests-${{ runner.os }}
path: ~/.cache/fury/logs
if: always()
- name: Summary
run: |
! ls -1 *.failed 2> /dev/null
integration-tests:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2.0.0
- uses: actions/download-artifact@v4.1.7
with:
name: build-dist-${{ runner.os }}
path: dist
- name: Install Fury
run: |
chmod +x dist/fury
mkdir -p "$HOME"/.local/share/fury/downloads
cp dist/fury-*.tar.gz "$HOME"/.local/share/fury/downloads
dist/fury system install
echo "$HOME/.local/share/fury/usr/active/bin" >> $GITHUB_PATH
echo "$HOME/.local/share/fury/usr/active/opt" >> $GITHUB_PATH
timeout-minutes: 5
- name: Prepare environment for integration tests
run: |
git config --global user.name 'Github Actions'
git config --global user.email github.actions@propensive.com
timeout-minutes: 1
- name: Run integration tests
run: |
etc/integration || touch integration.failed
! ls -1 integration.failed 2> /dev/null
timeout-minutes: 20
- uses: actions/upload-artifact@v2
with:
name: logs-integration-${{ runner.os }}
path: ~/.cache/fury/logs
if: always()
- name: Summary
run: |
! ls -1 *.failed 2> /dev/null