Skip to content

Update panda to v7

Update panda to v7 #54

Workflow file for this run

name: CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
permissions:
# id-token and pull-requests required by actions-riff-raff
id-token: write
pull-requests: write
# Required for `actions/checkout`
contents: read
steps:
# Seed the build number with last number from TeamCity.
# This env var is used by the JS, and SBT builds, and guardian/actions-riff-raff.
# Set the value early, rather than `buildNumberOffset` in guardian/actions-riff-raff, to ensure each usage has the same number.
# For some reason, it's not possible to mutate GITHUB_RUN_NUMBER, so set BUILD_NUMBER instead.
- name: Set BUILD_NUMBER environment variable
run: |
LAST_TEAMCITY_BUILD=298
echo "BUILD_NUMBER=$(( $GITHUB_RUN_NUMBER + $LAST_TEAMCITY_BUILD ))" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
cache-dependency-path: 'package-lock.json'
- name: JS Build
run: |
npm install
npm run build
- uses: guardian/setup-scala@v1
- name: Scala Build
run: |
sbt clean compile test Debian/packageBin
- name: Rename file to match Launch Configuration in AWS
run: |
mv target/restorer2_1.0.0_all.deb restorer2.deb
# Upload our build artifacts to Riff-Raff (well, S3)
- uses: guardian/actions-riff-raff@v4
with:
projectName: editorial-tools:flexible:restorer2
buildNumber: ${{ env.BUILD_NUMBER }}
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
configPath: riff-raff.yaml
contentDirectories: |
restorer2:
- restorer2.deb