Skip to content

Commit

Permalink
2.x: Added workflows/ce-dev-pr-temp-2.yml to run all the test while 2…
Browse files Browse the repository at this point in the history
….x is not available
  • Loading branch information
DionisioFG committed Mar 8, 2024
1 parent 96d32b6 commit f8f14d8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ce-dev-pr-temp-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: '2.x: Temporal workflow to test'

on:
push:
branches:
- 2.x-devel

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: '2.x-devel'
- name: Install modules
run: yarn
# Uses https://oclif.io/
# Not strictly necessary here, but ensures the packing works
- name: Pack the JS
run: yarn oclif pack tarballs --targets=linux-arm,linux-x64,darwin-x64 --no-xz
- name: Rename the dist/* files
run: yarn renamedist
# We build mkcert from source because releases are broken
- name: Install test dependencies
run: |
sudo apt-get update
sudo apt-get install -y p7zip-full libnss3-tools wget
cd /tmp
wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
sudo mv ./mkcert /usr/local/bin && cd ../
sudo chmod +x /usr/local/bin/mkcert
rm -Rf mkcert
- name: Build and test
run: |
/bin/sh docker-images/export.sh --version latest --image-name ce-dev --dockerfile-path base
/bin/sh docker-images/export.sh --version latest --image-name ce-dev-controller --dockerfile-path controller
sudo chmod +x bin/run.js
/bin/sh templates/prebuild.sh

0 comments on commit f8f14d8

Please sign in to comment.