Skip to content

tests: fix imports #3840

tests: fix imports

tests: fix imports #3840

Workflow file for this run

name: Nightlies
concurrency:
group: nightlies-${{ github.head_ref || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # load full history
- name: Get short SHA
id: slug
run: echo "SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: install node LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- name: Build a bot
env:
OPENEXCHANGE_APPID: ${{ secrets.OPENEXCHANGE_APPID }}
NODE_MODULES_DIR: ./node_modules
run: make
- name: Add commit file
run: echo "$(echo ${GITHUB_SHA} | cut -c1-8)" >> ./.commit
- name: Zip a bot
run: make pack
- name: Zip node_modules
run: make pack-modules
- uses: actions/upload-artifact@v3
with:
name: sogeBot-${{ steps.slug.outputs.SHA }}
path: ${{ github.workspace }}/*.zip
build:
needs: artifact
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Get short SHA
id: slug
run: echo "SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
-
name: Set up QEMU
uses: docker/[email protected]
-
name: Set up Docker Buildx
uses: docker/[email protected]
-
name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- uses: actions/download-artifact@v3
with:
name: sogeBot-${{ steps.slug.outputs.SHA }}
path: ${{ github.workspace }}/*.zip
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
sogebot/nightly:latest
sogebot/nightly:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max