diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000000..72883eef89a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,23 @@ +name: Tests +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: facebook/install-dotslash@latest + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly + - name: BTRFS-ify antlir2-out + run: | + mkdir antlir2-out + truncate -s 100G ${{ runner.temp }}/image.btrfs + mkfs.btrfs ${{ runner.temp }}/image.btrfs + mount ${{ runner.temp }}/image.btrfs antlir2-out + - name: Build layer with RPMs + run: | + ./buck2 build antlir//antlir/antlir2/features/rpm/tests:simple--layer