fork/team

git clone https://git.julia.blue/fork/team

InventiveCoderchore: fix some comments (#1408)a36da39

master
2.0 KiB64 linesraw
1on: [push, pull_request]
2
3jobs:
4  ci:
5    name: CI
6    runs-on: ubuntu-latest
7    if: github.repository == 'rust-lang/team'
8    permissions:
9      id-token: write
10    steps:
11
12      - uses: actions/checkout@main
13        with:
14          fetch-depth: 50
15
16      - name: Install Rust Stable
17        run: |
18          rustc -vV
19          rustup update stable
20          rustup default stable
21          rustc -vV
22
23      - name: Build the validation tool
24        run: cargo build
25
26      - name: Validate the repository contents
27        run: cargo run -- check --strict
28        env:
29          GITHUB_TOKEN: ${{ secrets.github_token }}
30
31      - name: Run rustfmt
32        run: cargo fmt -- --check
33
34      - name: Run tests
35        run: cargo test --workspace --all-features
36
37      - name: Build the contents of the static API
38        run: |
39          cargo run -- static-api build
40          echo "team-api.infra.rust-lang.org" > build/CNAME
41
42      - name: Deploy to GitHub Pages
43        run: |
44          touch build/.nojekyll
45          curl -LsSf https://raw.githubusercontent.com/rust-lang/simpleinfra/master/setup-deploy-keys/src/deploy.rs | rustc - -o /tmp/deploy
46          (cd build && /tmp/deploy)
47        env:
48          GITHUB_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
49        if: github.event_name == 'push' && github.ref == 'refs/heads/master'
50
51      - name: Configure AWS credentials
52        if: github.event_name == 'push' && github.ref == 'refs/heads/master'
53        uses: aws-actions/configure-aws-credentials@v1
54        with:
55          role-to-assume: arn:aws:iam::890664054962:role/ci--rust-lang--team
56          aws-region: us-west-1
57
58      - name: Start the synchronization tool
59        if: github.event_name == 'push' && github.ref == 'refs/heads/master'
60        run: |
61          # Introduce some artificial delay to help github pages propagate.
62          sleep 60
63          aws --region us-west-1 lambda invoke --function-name start-sync-team output.json
64          cat output.json | python3 -m json.tool