name: lint-and-reload on: push: branches: [test] jobs: lint: runs-on: fish steps: - name: checkout run: | rm -rf checkout && git clone --depth 1 --branch test https://prosjekt.klingenbergbygg.no/klingenbergbygg/questions.git checkout # The lint is portal itself, at the newest release: the one the # test instance runs. - name: lint run: | tag=$(curl -sf https://project.uhhm.no/api/v1/repos/uhhm/portal/releases/latest | jq -r .tag_name) curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/$tag/portal-x86_64-linux" -o portal && chmod +x portal ./portal lint --path checkout/questions # The test instance's own NATS, never production's. - name: reload run: nats --server nats://127.0.0.1:4232 pub portal.content.reload ""