Continuous Integration #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
test: | |
name: Test for ${{ matrix.arch }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: | |
- x86_64 | |
- aarch64 | |
- armv7 | |
- ppc64le | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Install alpine-chroot-install | |
run: | | |
wget https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.14.0/alpine-chroot-install | |
echo 'ccbf65f85cdc351851f8ad025bb3e65bae4d5b06 alpine-chroot-install' | sha1sum -c || exit 1 | |
chmod +x alpine-chroot-install | |
cp alpine-chroot-install /usr/local/bin/ | |
- name: Test | |
shell: bash | |
run: | | |
./alpkg init --packager "Your Name <your@email.address>" --aports "https://gitlab.alpinelinux.org/alpine/aports" | |
./alpkg destroy | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Run shellcheck | |
uses: ludeeus/action-shellcheck@master | |
env: | |
SHELLCHECK_OPTS: alpkg |