diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 000000000..fe57a9724 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,37 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 23 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '23' + cache: 'maven' + + - name: Install MongoDB + run: | + sudo apt-get update + sudo apt-get install -y mongodb-org + sudo systemctl start mongod + sudo systemctl enable mongod + + - name: Verify MongoDB + run: | + mongo --version + mongo + exit + timeout-minutes: 2 + + - name: Make script executable + run: chmod +x travis.sh + + - name: Run script + run: ./travis.sh \ No newline at end of file